dcase_util.utils.Path.file_list
- Path.file_list(path=None, recursive=True, extensions=None, case_sensitive=False, absolute_paths=False, offset=0, limit=None)[source]
Get file list
- Parameters
- pathstr
Path, if none given one given to class constructor is used. Default value None
- recursivebool
Do recursive search to sub-directories Default value True
- extensionsstr or list
List valid file extensions or comma-separated string. Default value None
- case_sensitivebool
Use case sensitive file extension matching. Default value False
- absolute_pathsbool
Return absolute paths instead of relative ones. Default value False
- offsetint
Offset of files to be included. Default value 0
- limitint
Amount of files to be included. Default value None
- Returns
- list