Part of twisted.vfs.backends.osfs View Source View In Hierarchy
Implements interfaces: twisted.vfs.ivfs.IFileSystemContainer
Method | children | See IFileSystemContainer. |
Method | child | See IFileSystemContainer. |
Class Method | childDirFactory | No summary |
Method | childFileFactory | No summary |
Method | createDirectory | See IFileSystemContainer. |
Method | createFile | See IFileSystemContainer. |
Method | create | Undocumented |
Method | remove | Removes this node. An error is raised if the node is a directory and is not empty. |
Method | exists | See IFileSystemContainer. |
Inherited from OSNode:
Method | __init__ | Undocumented |
Method | getMetadata | Feturns a map of arbitrary metadata. As an example, here's what SFTP expects (but doesn't require): |
Method | setMetadata | Undocumented |
Method | rename | Rename this node to newName .
|
Returns a callable that will be used to construct instances for subdirectories of this OSDirectory. The callable should accept the same interface as OSDirectory.__init__; i.e. take three args (path, name, parent), and return an IFileSystemContainer.
By default, this will be the class of the child's parent. Override this method if you want a different behaviour.Returns a callable that will be used to construct instances for files in this OSDirectory. The callable should accept the same interface as OSFile.__init__; i.e. take three args (path, name, parent), and return an IFileSystemLeaf.
By default, this will be OSFile. Override this method if you want a different behaviour.