Skip to content

Commit eed5ea8

Browse files
committed
remove
1 parent e43505c commit eed5ea8

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

pyiceberg/io/pyarrow.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
from pyarrow import ChunkedArray
6868
from pyarrow.fs import (
6969
FileInfo,
70-
FileSelector,
7170
FileSystem,
7271
FileType,
7372
FSSpecHandler,
@@ -577,20 +576,6 @@ def delete(self, location: Union[str, InputFile, OutputFile]) -> None:
577576
raise PermissionError(f"Cannot delete file, access denied: {location}") from e
578577
raise # pragma: no cover - If some other kind of OSError, raise the raw error
579578

580-
def list_files(self, location: str) -> Iterator[str]:
581-
"""Recursively list all files in the given location.
582-
583-
Args:
584-
location (str): A URI or a path to a local directory.
585-
586-
Returns:
587-
Iterator[str]: An iterator of file paths.
588-
"""
589-
scheme, netloc, path = self.parse_location(location)
590-
fs = self.fs_by_scheme(scheme, netloc)
591-
selector = FileSelector(path, recursive=True)
592-
return fs.get_file_info(selector)
593-
594579
def __getstate__(self) -> Dict[str, Any]:
595580
"""Create a dictionary of the PyArrowFileIO fields used when pickling."""
596581
fileio_copy = copy(self.__dict__)

0 commit comments

Comments
 (0)