wsgidav.fs_dav_provider.FolderResource

class wsgidav.fs_dav_provider.FolderResource(path, environ, file_path)[source]

Bases: wsgidav.dav_provider.DAVCollection

Represents a single existing file system folder DAV resource.

See also _DAVResource, DAVCollection, and FilesystemProvider.

FolderResource.begin_write([content_type]) Open content as a stream for writing.
FolderResource.copy_move_single(dest_path, …) See DAVResource.copy_move_single()
FolderResource.create_collection(name) Create a new collection as member of self.
FolderResource.create_empty_resource(name) Create an empty (length-0) resource.
FolderResource.delete() Remove this resource or collection (recursive).
FolderResource.end_write(with_errors) Called when PUT has finished writing.
FolderResource.finalize_headers(environ, …) Perform custom operations on the response headers.
FolderResource.get_content() Open content as a stream for reading.
FolderResource.get_content_length() Contains the Content-Length header returned by a GET without accept headers.
FolderResource.get_content_type() Contains the Content-Type header returned by a GET without accept headers.
FolderResource.get_creation_date() Records the time and date the resource was created.
FolderResource.get_descendants([…]) Return a list _DAVResource objects of a collection (children, grand-children, …).
FolderResource.get_directory_info() Return a list of dictionaries with information for directory rendering.
FolderResource.get_display_info() Return additional info dictionary for displaying (optional).
FolderResource.get_display_name() Provides a name for the resource that is suitable for presentation to a user.
FolderResource.get_etag() See http://www.webdav.org/specs/rfc4918.html#PROPERTY_getetag
FolderResource.get_href() Convert path to a URL that can be passed to XML responses.
FolderResource.get_last_modified() Contains the Last-Modified header returned by a GET method without accept headers.
FolderResource.get_member(name) Return direct collection member (DAVResource or derived).
FolderResource.get_member_list() Return a list of direct members (_DAVResource or derived objects).
FolderResource.get_member_names() Return list of direct collection member names (utf-8 encoded).
FolderResource.get_preferred_path() Return preferred mapping for a resource mapping.
FolderResource.get_properties(mode[, name_list]) Return properties as list of 2-tuples (name, value).
FolderResource.get_property_names(is_allprop) Return list of supported property names in Clark Notation.
FolderResource.get_property_value(name) Return the value of a property.
FolderResource.get_ref_url() Return the quoted, absolute, unique URL of a resource, relative to appRoot.
FolderResource.handle_copy(dest_path, …) Handle a COPY request natively.
FolderResource.handle_delete() Handle a DELETE request natively.
FolderResource.handle_move(dest_path) Handle a MOVE request natively.
FolderResource.is_locked() Return True, if URI is locked.
FolderResource.move_recursive(dest_path) See DAVResource.move_recursive()
FolderResource.prevent_locking() Return True, to prevent locking.
FolderResource.remove_all_locks(recursive)
FolderResource.remove_all_properties(recursive) Remove all associated dead properties.
FolderResource.resolve(script_name, path_info) Return a _DAVResource object for the path (None, if not found).
FolderResource.set_last_modified(dest_path, …) Set last modified time for destPath to timeStamp on epoch-format
FolderResource.set_property_value(name, value) Set a property value or remove a property.
FolderResource.support_content_length() Return True, if this resource supports Content-Length.
FolderResource.support_etag() Return True, if this resource supports ETags.
FolderResource.support_modified() Return True, if this resource supports last modified dates.
FolderResource.support_ranges() Return True, if this non-resource supports Range on GET requests.
FolderResource.support_recursive_delete() Return True, if delete() may be called on non-empty collections (see comments there).
FolderResource.support_recursive_move(dest_path) Return True, if move_recursive() is available (see comments there).