Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.fs_dav_provider.FileResource.createCollection

FileResource.createCollection(name)

Create a new collection as member of self.

Preconditions (to be ensured by caller):

  • this must be a collection
  • <self.path + name> must not exist
  • there must be no conflicting locks

This method MUST be implemented by all providers that support write access. This default implementation raises HTTP_FORBIDDEN.