pyufunc.check_filename#

pyufunc.check_filename(filename)#

Validate the filename, if the file exists, return True, otherwise False.

Location:

pyufunc/util_pathio/_path.py

See also

check_file_existence

Parameters:

filename (str | Path) – the filename to be validated

Returns:

True if the file exists, otherwise False

Return type:

bool

Examples

>>> import pyufunc as uf
>>> uf.check_filename('./test.txt')
False