Class t.v.b.o.OSDirectory(OSNode):

Part of twisted.vfs.backends.osfs View Source View In Hierarchy

Implements interfaces: twisted.vfs.ivfs.IFileSystemContainer
No class docstring
Method children See IFileSystemContainer.
Method child See IFileSystemContainer.
Method childDirFactory Returns a callable that will be used to construct instances for
Method childFileFactory Returns a callable that will be used to construct instances for files
Method createDirectory See IFileSystemContainer.
Method createFile See IFileSystemContainer.
Method create Undocumented
Method remove Removes this node.
Method exists See IFileSystemContainer.

Inherited from OSNode:

Method __init__ Undocumented
Method getMetadata returns a map of arbitrary metadata. As an example, here's what SFTP
Method setMetadata Undocumented
Method rename Renames this node to newName. newName can be in a different
def children(self): (source)
See IFileSystemContainer.
def child(self, childName): (source)
See IFileSystemContainer.
def childDirFactory(cls): (source)

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.
def childFileFactory(self): (source)

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.
def createDirectory(self, childName): (source)
See IFileSystemContainer.
def createFile(self, childName, exclusive=True): (source)
See IFileSystemContainer.
def create(self): (source)
Undocumented
def remove(self): (source)
Removes this node. An error is raised if the node is a directory and is not empty.
def exists(self, childName): (source)
See IFileSystemContainer.
API Documentation for twisted, generated by pydoctor.