check_directory_exists#

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

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

Parameters:

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

Return type:

None