arctichoke.verify.verify_path

Functions

verify_path(path)

Verify that the filepath exists.

Module Contents

arctichoke.verify.verify_path.verify_path(path)

Verify that the filepath exists.

Check if the path to the data files exists and is valid. If not, raise an error.

Parameters:

path (str) – Relative path to the directory containing data files.

Raises:

FileNotFoundError – If the specified path does not exist.

Returns:

path – The verified path to the data files.

Return type:

str

Examples

>>> verify_path('README.md')
'README.md'