skshetry / webdav4

WebDAV client library with a fsspec based filesystem and a CLI.
https://skshetry.github.io/webdav4
MIT License
61 stars 17 forks source link

Support: parse user/pass from URI? #171

Closed pataquets closed 2 months ago

pataquets commented 10 months ago

I'm trying to use the webdav4 lib initializing it with a full HTTP URI with user/pass built-in as: https://user:pass@myserver. Browsing at the docs and the code, I haven't seen this is supported. Is it possible?

If it's not, would it be a valid feature to accept a PR?

skshetry commented 2 months ago

Yes, you can pass the url directly as base_url= keyword argument either in webdav4.fsspec.WebdavFileSystem or in webdav4.client.Client.