Skip to content

glob doesn't pass extra parameters to ls #89

@ophiry

Description

@ophiry

according to this: https://github.com/intake/filesystem_spec/blob/master/fsspec/spec.py#L420 glob should pass extra kwargs to the ls function.

I tried using the details=True flag, but got an exception

import fsspec
fs = fsspec.get_filesystem_class('s3')()
fs.glob('s3://bucket/*', detail=True)

  File "fsspec_test.py", line 3, in <module>
    fs.glob('s3://bucket/*', detail=True)
  File "./lib/python3.7/site-packages/fsspec/spec.py", line 444, in glob
    allpaths = self.find(root, maxdepth=depth, **kwargs)
  File "./lib/python3.7/site-packages/fsspec/spec.py", line 373, in find
    for path, _, files in self.walk(path, maxdepth, **kwargs):
TypeError: walk() got an unexpected keyword argument 'detail'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions