pyspi.io.file_utils module

pyspi.io.file_utils.file_existing_and_readable(filename)[source]

Check if a file exists :param filename: Filename to check :return: True or False

pyspi.io.file_utils.path_exists_and_is_directory(path)[source]

Check if a path exists and is a directory :param path: Path to check :return: True or False

pyspi.io.file_utils.sanitize_filename(filename, abspath=False)[source]

Sanitize filename :param filename: name of file :param abspath: Get the absolute path? :return: sanitized filename