Skip to content

tree() and walk() don't work with minio #57

Closed
@pitrou

Description

@pitrou

I have a file in somedir/subdir:

>>> list(fs.listdir('somedir/subdir'))                                                                                                                               
['mkpass.py']

However neither walk() nor tree() are able to see it:

>>> list(fs.walk('somedir/subdir'))                                                                                                                                  
Traceback (most recent call last):
  File "<ipython-input-39-f399f0a633b1>", line 1, in <module>
    list(fs.walk('somedir/subdir'))
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/fs/walk.py", line 337, in walk
    for dir_path, info in _walk:
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/fs/walk.py", line 433, in _walk_breadth
    for info in _scan(fs, dir_path, namespaces=namespaces):
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/fs/walk.py", line 298, in _scan
    six.reraise(type(error), error)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/six.py", line 692, in reraise
    raise value.with_traceback(tb)
ResourceNotFound: resource '/somedir/subdir' not found

>>> fs.tree()                                                                                                                                                        
├── somedir
│   └── error (resource '/somedir' not found)
└── bench-amd.txt

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