A dataset of all files matching a pattern

A dataset of all files matching a pattern

file_list_dataset(file_pattern)

Arguments

file_pattern

A string, representing the filename pattern that will be matched.

Value

A dataset of string correponding to file names

Details

For example, if we had the following files on our filesystem:

  • /path/to/dir/a.txt

  • /path/to/dir/b.csv

  • /path/to/dir/c.csv

If we pass "/path/to/dir/*.csv" as the file_pattern, the dataset would produce:

  • /path/to/dir/b.csv

  • /path/to/dir/c.csv