Implementation of a DAV provider that serves resource from a file system.

FilesystemProvider implements a DAV resource provider that publishes a file system.

If readonly=True is passed, write attempts will raise HTTP_FORBIDDEN.

This provider creates instances of FileResource and FolderResource to represent files and directories respectively.


FileResource(path, environ, file_path) Represents a single existing DAV resource instance.
FilesystemProvider(root_folder_path[, readonly])
FolderResource(path, environ, file_path) Represents a single existing file system folder DAV resource.

Other Members

BUFFER_SIZE int([x]) -> integer int(x, base=10) -> integer
DAVCollection(path, environ) A DAVCollection is a _DAVResource, that has members (like a ‘folder’ on a filesystem).
DAVError(status_code[, context_info, …]) General error class that is used to signal HTTP and WEBDAV errors.
DAVNonCollection(path, environ) A DAVNonCollection is a _DAVResource, that has content (like a ‘file’ on a filesystem).
DAVProvider() Abstract base class for DAV resource providers.
HTTP_FORBIDDEN int([x]) -> integer int(x, base=10) -> integer
compat Tool functions to support Python 2 and 3.
os OS routines for NT or Posix depending on what system we’re on.
shutil Utility functions for copying and archiving files and directory trees.
stat Constants/functions for interpreting results of os.stat() and os.lstat().
sys This module provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter.
util Miscellaneous support functions for WsgiDAV.