-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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://pass@example.com: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