check_file_exists#

pybrops.core.error.error_io_python.check_file_exists(path)[source]#

Subroutine to check whether a given file exists. If the file does not exist, raise an FileNotFoundError with a custom error message.

Parameters:

path (str, path-like object) – Path to check.

Return type:

None