webdavfs
webdavfs copied to clipboard
filterdir and glob throw errors
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
I can not reproduce these error with webdavfs==0.4.2. Please re-check
And sorry for the late action. I have not worked on WebDAV projects lately.