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

what's the point to HEAD the parent folder before uploading #129

Open
tbswork1 opened this issue Oct 2, 2022 · 0 comments
Open

what's the point to HEAD the parent folder before uploading #129

tbswork1 opened this issue Oct 2, 2022 · 0 comments

Comments

@tbswork1
Copy link

tbswork1 commented Oct 2, 2022

The check() function is called before uploading file. The RFC quoted is meant to get index.html in that folder with GET or HEAD or return 404. In webdav, you check the existence of the folder with PROPFIND not GET or HEAD. This causes the upload failed with some webdav servers that have no idea what you want with GET/HEAD on a folder.

@wrap_connection_error
    def check(self, remote_path=root):
        """Checks an existence of remote resource on WebDAV server by remote path.
        More information you can find by link http://webdav.org/specs/rfc4918.html#rfc.section.9.4

        :param remote_path: (optional) path to resource on WebDAV server. Defaults is root directory of WebDAV.
        :return: True if resource is exist or False otherwise
        """
        if self.webdav.disable_check:
            return True
@tbswork1 tbswork1 changed the title what's the point the HEAD the parent folder before uploading what's the point to HEAD the parent folder before uploading Oct 2, 2022
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

1 participant