check_file_exists#

caf.toolkit.io.check_file_exists(file_path, find_similar=False)[source]#

Checks if a file exists at the given path. Throws an error if not.

Parameters:
  • file_path (PathLike) – path to the file to check.

  • find_similar (bool) – Whether to look for files with the same name, but a different file type extension. If True, this will call find_filename() using the default alternate file types: [‘.pbz2’, ‘.csv’]

Return type:

None