Interface t.v.i.IFileSystemLeaf(IFileSystemNode):

Part of twisted.vfs.ivfs View Source View In Hierarchy

Known implementations: twisted.vfs.backends.inmem.FakeFile, twisted.vfs.backends.osfs.OSFile
No interface docstring
Method open Opens the file with flags. Flags should be a bitmask based on
Method close closes this node
Method readChunk Leaf should have been previously opened with suitable flags.
Method writeChunk Leaf should have been previously opened with suitable flags.

Inherited from IFileSystemNode:

Attribute parent parent node
Method getMetadata returns a map of arbitrary metadata. As an example, here's what SFTP
Method remove Removes this node.
Method rename Renames this node to newName. newName can be in a different
def open(flags): (source)
Opens the file with flags. Flags should be a bitmask based on the os.O_* flags.
def close(): (source)
closes this node
def readChunk(offset, length): (source)
Leaf should have been previously opened with suitable flags. Reads length bytes or until the end of file from this leaf from the given offset.
def writeChunk(offset, data): (source)
Leaf should have been previously opened with suitable flags. Writes data to leaf from the given offset.
API Documentation for twisted, generated by pydoctor.