get_filelist#
- geobricks.get_filelist(data, *, extension=None, tag='')[source]#
This function extract from a folder (or a file) a list of relevant files.
Parameters#
- data: path (str or pathlib.Path) or list of paths (str or pathlib.Path)
Folder, filepath or iterable of filepaths
- extension: str, optional
Only the files with this extension will be retrieved.
- tag: str, optional
Only the files containing this tag in their names will be retrieved.
Returns#
- data_folderstr
Root of the files.
- filelistlist of str
List of selected file names.