list_files
-
fairseq2.data.list_files(path, pattern=None)[source]
List recursively all files under path
that matches pattern
.
- Parameters:
path (Path) – The path to traverse.
pattern (str | None) – If non-empty, a pattern that follows the syntax of fnmatch
.
- Return type:
DataPipelineBuilder