webdavfs icon indicating copy to clipboard operation
webdavfs copied to clipboard

filterdir and glob throw errors

Open fpuga opened this issue 6 years ago • 2 comments

When using filterdir or glob with a webdav filesystem errors are raised.

# works as expected
with open_fs("~/Escritorio") as f: print(list(f.filterdir("/", files=["*.pdf"])))

url = "webdavs://[email protected]:443/remote.php/webdav/foo/bar"

# "TypeError: expected string or bytes-like object" is raised
with open_fs(url) as f: print(list(f.filterdir("/", files=["*.pdf"])))

# AttributeError: 'NoneType' object has no attribute 'lstrip'
with open_fs(url) as f: print(list(f.glob("*.pdf")))

# listdir works as expected and show files with pdf extension

fpuga avatar Sep 12 '19 18:09 fpuga

I can not reproduce these error with webdavfs==0.4.2. Please re-check

zopyx avatar Mar 10 '21 18:03 zopyx

And sorry for the late action. I have not worked on WebDAV projects lately.

zopyx avatar Mar 10 '21 18:03 zopyx