webdav-client-python
webdav-client-python copied to clipboard
Directory methods fixes
On our DAV server, two functions on directories failed:
check()returnedFalsewhen passed dav.check('/path/to/mydir'), where mydir is a directoryis_dir()raised aMethodNotSupportederror on files
Fixed these two issues by
- removing trailing slashes from both the path and urn before comparing
- looking for a resourcetype/collection directly, thus resources without a resource type will not fail but return false.
Could you please consider these changes for a next release?