- class pyarrow.fs.FSSpecHandler(fs)[source]#
Bases:
FileSystemHandlerHandler for fsspec-based Python filesystems.
https://filesystem-spec.readthedocs.io/en/latest/index.html
- Parameters:
- fsFSSpec-compliant filesystem
instance
- fsFSSpec-compliant filesystem
Examples
>>> PyFileSystem(FSSpecHandler(fsspec_fs))
Methods
- delete_dir(self, path)[source]#
Implement PyFileSystem.delete_dir(…).
- Parameters:
- path
str path of the directory.
- path
- delete_dir_contents(self, path, missing_dir_ok=False)[source]#
Implement PyFileSystem.delete_dir_contents(…).
- delete_file(self, path)[source]#
Implement PyFileSystem.delete_file(…).
- Parameters:
- path
str path of the file.
- path
- delete_root_dir_contents(self)[source]#
Implement PyFileSystem.delete_dir_contents(“/”, accept_root_dir=True).
- get_file_info_selector(self, selector)[source]#
Implement PyFileSystem.get_file_info(selector).
- Parameters:
- selector
FileSelector selector for which we want to retrieve the info.
- selector
- normalize_path(self, path)[source]#
Implement PyFileSystem.normalize_path(…).
- Parameters:
- path
str path of what should be normalized.
- path
- open_append_stream(self, path, metadata)[source]#
Implement PyFileSystem.open_append_stream(…).
- Parameters:
- path
str path of what should be opened.
- metadatamapping
Mapping of string keys to string values. Some filesystems support storing metadata along the file (such as “Content-Type”).
- path
- open_input_file(self, path)[source]#
Implement PyFileSystem.open_input_file(…).
- Parameters:
- path
str path of what should be opened.
- path
pyarrow.fs.FSSpecHandler — Apache Arrow v23.0.1