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

mkdirs() fails on some webdav servers #54

Open
andybelov opened this issue Sep 11, 2017 · 0 comments
Open

mkdirs() fails on some webdav servers #54

andybelov opened this issue Sep 11, 2017 · 0 comments

Comments

@andybelov
Copy link

andybelov commented Sep 11, 2017

A call to mkdirs('/some/folder/') will result in calling:

  1. self.mkdir('/some')
  2. self.mkdir('folder')

However some webdav (for example nginx) servers require a slash at the end of the path to folder:

  1. self.mkdir('/some/')
  2. self.mkdir('folder/')

RFC has no explicit requirement for a slash, but all the examples are given with it:
https://tools.ietf.org/html/rfc2518#page-33

So this is probably a good idea to add slashes in the end of path in mkdir calls.

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