OCA / edi-framework

GNU Affero General Public License v3.0
6 stars 26 forks source link

[16.0] edi_storage: fix list_files #76

Open simahawk opened 4 months ago

simahawk commented 4 months ago

TODO: explanation... don't know yet why this is happening for certain SFTP server only.

With detail=False it breaks like this:

>>> fs.ls(fpath.as_posix(), detail=False)
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/fsspec/implementations/dirfs.py", line 255, in ls
    return self._relpath(ret)
  File "/usr/local/lib/python3.10/site-packages/fsspec/implementations/dirfs.py", line 70, in _relpath
    return [self._relpath(_path) for _path in path]
  File "/usr/local/lib/python3.10/site-packages/fsspec/implementations/dirfs.py", line 70, in <listcomp>
    return [self._relpath(_path) for _path in path]
  File "/usr/local/lib/python3.10/site-packages/fsspec/implementations/dirfs.py", line 68, in _relpath
    assert path.startswith(prefix)
AssertionError
simahawk commented 4 months ago

@nilshamerlinck feel free to take over pls :pray:

github-actions[bot] commented 2 weeks ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

simahawk commented 1 week ago

@nilshamerlinck ping :)