pyarrow.fs.FileSelector

class pyarrow.fs.FileSelector

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_found (bool, 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.

  • recursive (bool, default False) – Whether to recurse into subdirectories.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs)

Initialize self.

Attributes

allow_not_found

base_dir

recursive

allow_not_found
base_dir
recursive