data_base ❭ db_initializers ❭ load_simrun_general ❭ file_handling ❭ get_file
get_file¶
- data_base.db_initializers.load_simrun_general.file_handling.get_file(self, suffix)¶
Get the filename of the unique file in the current directory with the specified suffix.
This method does not recurse into subdirectories.
- Parameters:¶
self (str) – Path to the directory.
suffix (str) – Suffix of the files to be found.
- Returns:¶
Path to the file with the specified suffix.
- Return type:¶
str
- Raises:¶
ValueError – If no file with the specified suffix is found.
ValueError – If multiple files with the specified suffix are found.