Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filterdir and glob throw errors #21

Open
fpuga opened this issue Sep 12, 2019 · 2 comments
Open

filterdir and glob throw errors #21

fpuga opened this issue Sep 12, 2019 · 2 comments
Assignees

Comments

@fpuga
Copy link

fpuga commented Sep 12, 2019

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
@zopyx
Copy link
Contributor

zopyx commented Mar 10, 2021

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

@zopyx zopyx assigned zopyx and fpuga Mar 10, 2021
@zopyx
Copy link
Contributor

zopyx commented Mar 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants