pyarrow.fs.FileSelector¶
- class pyarrow.fs.FileSelector(base_dir, bool allow_not_found=False, bool recursive=False)¶
Bases:
pyarrow.lib._Weakrefable
File and directory selector.
It contains a set of options that describes how to search for files and directories.
- Parameters
- base_dir
str
The directory in which to select files. Relative paths also work, use ‘.’ for the current directory and ‘..’ for the parent.
- allow_not_foundbool, default
False
The behavior if base_dir doesn’t exist in the filesystem. If false, an error is returned. If true, an empty selection is returned.
- recursivebool, default
False
Whether to recurse into subdirectories.
- base_dir
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)Attributes
- allow_not_found¶
- base_dir¶
- recursive¶