datasets.recursive_glob
datasets.recursive_glob(start, pattern='*.json')
Recursively glob for the given pattern from the start directory.
Parameters
Name | Type | Description | Default |
---|---|---|---|
start |
str | Path of the directory to walk while for file globbing | required |
pattern |
str | Filename pattern to match in the glob. | '*.json' |
Returns
Type | Description |
---|---|
[str] | List of matched filenames |