Skip to content

mkdirs() fails on some webdav servers #54

@andybelov

Description

@andybelov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions