Skip to content

filterdir and glob throw errors #21

@fpuga

Description

@fpuga

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

Metadata

Metadata

Assignees

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