lisc.io.utils.get_files¶
- lisc.io.utils.get_files(folder, drop_ext=False, sort_files=True, drop_hidden=True, select=None)[source]¶
Get a list of files from a directory.
- Parameters
- folderstr or Path
Name of the folder to get the list of files from.
- drop_extbool, optional, default: False
Whether the drop the file extensions from the returned file list.
- sort_filesbool, optional, default: True
Whether to sort the list of file names.
- drop_hiddenbool, optional, default: True
Whether to drop hidden files from the list.
- selectstr, optional
A search string to use to select files.
- Returns
- list of str
A list of files from the folder.