cifkit.utils.folder module
- cifkit.utils.folder.check_file_exists(file_path: str) bool[source]
- Check if the specified file exists. 
- cifkit.utils.folder.check_file_not_empty(file_path: str) bool[source]
- Check if the specified file is not empty. 
- cifkit.utils.folder.copy_files(to_directory: str, file_path_list: list[str]) None[source]
- Copy files to another folder, creating the folder if it doesn’t exist. 
- cifkit.utils.folder.get_file_count(dir_path: str, ext='.cif') int[source]
- Count files with a given extension in a directory. 
- cifkit.utils.folder.get_file_path(dir_path: str, file_name: str) str[source]
- Construct and return the full path for a file within a specified directory. 
- cifkit.utils.folder.get_file_paths(dir_path: str, ext='.cif', add_nested_files=False) list[str][source]
- Return a list of file paths with a given extension from a directory.