ngg opened a new pull request, #7882: URL: https://github.com/apache/opendal/pull/7882
# Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> Fixes #7881. # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> # What changes are included in this PR? Normalize DavPath values before using them for comparisons against OpenDAL paths. OpenDAL normalizes operation paths internally, so the DAV integration compares paths in that same form when checking lister output and collection moves. Use directory-shaped paths for collection metadata, listing, creation, and deletion. Slashless collection requests now fall back to trailing slash paths. Support moving empty collections by creating the destination collection and deleting the source after a limited listing confirms the source is empty. This is needed so Windows Explorer can create a folder by renaming the initial New folder collection. Directory copies and non-empty directory moves still return NotImplemented. Gate DAV append requests on write_can_append. Honor create_new by using if-not-exists only when write_with_if_not_exists is advertised. Map more OpenDAL errors to WebDAV errors, including Unsupported, path-type errors, and conditional conflicts. <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> # Are there any user-facing changes? WebDAV integration works better. <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!--- If there are any breaking changes to public APIs, please add the `breaking-changes` label. --> # AI Usage Statement I used Codex with GPT-5.5 to help draft and refine the change. I manually reviewed the generated code and tested the resulting behavior from Windows Explorer against a WebDAV path backed by OpenDAL. <!-- If you are using AI tools to build this PR, please include a statement specifying the tool and models you are using. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
