FileFinder#
- class polpo.preprocessing.path.FileFinder(data_dir=None, rules=(), warn=True, as_list=False)[source]#
Bases:
PreprocessingStep
Find files given rules.
- Parameters:
data_dir (str) – Searching directory.
rules (FileRule or list[FileRule]) – Rules to filter files with.
warn (bool) – Whether to warn if can’t find file.
as_list (bool) – Whether to return a list if only single element.