-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
The fsspec find interface accepts maxdepth, but the adlfs implementation doesn't actually use this parameter -- so it always recursively lists all files in the directory.
See here:
Line 1128 in f15c37a
| def find(self, path, withdirs=False, prefix="", **kwargs): |
pyarrow's wrapper of fsspec filesystems uses fs.find to perform a list operation at a directory. This makes use of the maxdepth parameter when the user specifies recursive=False in pyarrow.
fs = pyarrow.fs.PyFileSystem(pyarrow.fs.FSSpecHandler(fsspec_fs))
file_infos = fs.get_file_info(
pyarrow.fs.FileSelector("path", recursive=False)
)
# All files under path will be recursively listed, rather than just the top level.Easy fix is to just take the gcsfs implementation:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels