pyufunc.get_files_by_ext#
- pyufunc.get_files_by_ext(dir_path, file_ext='csv', incl_subdir=False)#
Get a list of filenames in a folder by file extension.
- Location:
pyufunc/util_pathio/_path.py
References
mikeqfu/pyhelpers (GNU)
See also
get_filenames_by_ext
- Parameters:
- Returns:
a list of filenames with absolute paths
- Return type:
Examples
>>> import pyufunc as uf >>> uf.get_filenames_by_ext('./', 'py') ['C:/Users/Administrator/Desktop/test/test.py']