Attention
You are looking at outdated documentation for version 2.x. A newer version is available.
wsgidav.fs_dav_provider.FolderResource¶
-
class
wsgidav.fs_dav_provider.
FolderResource
(path, environ, filePath)[source]¶ Bases:
wsgidav.dav_provider.DAVCollection
Represents a single existing file system folder DAV resource.
See also _DAVResource, DAVCollection, and FilesystemProvider.
FolderResource.beginWrite
([contentType])Open content as a stream for writing. FolderResource.copyMoveSingle
(destPath, isMove)See DAVResource.copyMoveSingle() FolderResource.createCollection
(name)Create a new collection as member of self. FolderResource.createEmptyResource
(name)Create an empty (length-0) resource. FolderResource.delete
()Remove this resource or collection (recursive). FolderResource.endWrite
(withErrors)Called when PUT has finished writing. FolderResource.finalizeHeaders
(environ, …)Perform custom operations on the response headers. FolderResource.getContent
()Open content as a stream for reading. FolderResource.getContentLength
()Contains the Content-Length header returned by a GET without accept headers. FolderResource.getContentType
()Contains the Content-Type header returned by a GET without accept headers. FolderResource.getCreationDate
()Records the time and date the resource was created. FolderResource.getDescendants
([collections, …])Return a list _DAVResource objects of a collection (children, grand-children, …). FolderResource.getDirectoryInfo
()Return a list of dictionaries with information for directory rendering. FolderResource.getDisplayInfo
()Return additional info dictionary for displaying (optional). FolderResource.getDisplayName
()Provides a name for the resource that is suitable for presentation to a user. FolderResource.getEtag
()See http://www.webdav.org/specs/rfc4918.html#PROPERTY_getetag FolderResource.getHref
()Convert path to a URL that can be passed to XML responses. FolderResource.getLastModified
()Contains the Last-Modified header returned by a GET method without accept headers. FolderResource.getMember
(name)Return direct collection member (DAVResource or derived). FolderResource.getMemberList
()Return a list of direct members (_DAVResource or derived objects). FolderResource.getMemberNames
()Return list of direct collection member names (utf-8 encoded). FolderResource.getPreferredPath
()Return preferred mapping for a resource mapping. FolderResource.getProperties
(mode[, nameList])Return properties as list of 2-tuples (name, value). FolderResource.getPropertyNames
(isAllProp)Return list of supported property names in Clark Notation. FolderResource.getPropertyValue
(propname)Return the value of a property. FolderResource.getRefUrl
()Return the quoted, absolute, unique URL of a resource, relative to appRoot. FolderResource.handleCopy
(destPath, …)Handle a COPY request natively. FolderResource.handleDelete
()Handle a DELETE request natively. FolderResource.handleMove
(destPath)Handle a MOVE request natively. FolderResource.isLocked
()Return True, if URI is locked. FolderResource.moveRecursive
(destPath)See DAVResource.moveRecursive() FolderResource.preventLocking
()Return True, to prevent locking. FolderResource.removeAllLocks
(recursive)FolderResource.removeAllProperties
(recursive)Remove all associated dead properties. FolderResource.resolve
(scriptName, pathInfo)Return a _DAVResource object for the path (None, if not found). FolderResource.setLastModified
(destPath, …)Set last modified time for destPath to timeStamp on epoch-format FolderResource.setPropertyValue
(propname, value)Set a property value or remove a property. FolderResource.supportContentLength
()Return True, if this resource supports Content-Length. FolderResource.supportEtag
()Return True, if this resource supports ETags. FolderResource.supportModified
()Return True, if this resource supports last modified dates. FolderResource.supportRanges
()Return True, if this non-resource supports Range on GET requests. FolderResource.supportRecursiveDelete
()Return True, if delete() may be called on non-empty collections (see comments there). FolderResource.supportRecursiveMove
(destPath)Return True, if moveRecursive() is available (see comments there).