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

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

Implements interfaces: twisted.vfs.ivfs.IFileSystemLeaf
No class docstring
Method create Undocumented
Method open Opens the file with flags. Flags should be a bitmask based on
Method readChunk Leaf should have been previously opened with suitable flags.
Method writeChunk Leaf should have been previously opened with suitable flags.
Method close closes this node
Method remove Removes this node.

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 create(self, exclusive=True): (source)
Undocumented
def open(self, flags): (source)
Opens the file with flags. Flags should be a bitmask based on the os.O_* flags.
def readChunk(self, 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(self, offset, data): (source)
Leaf should have been previously opened with suitable flags. Writes data to leaf from the given offset.
def close(self): (source)
closes this node
def remove(self): (source)
Removes this node. An error is raised if the node is a directory and is not empty.
API Documentation for twisted, generated by pydoctor.