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