t.v.b.o.OSFile(OSNode) : class documentation

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

Implements interfaces: twisted.vfs.ivfs.IFileSystemLeaf

Undocumented
Method create Undocumented
Method open Opens the file with flags. Flags should be a bitmask based on the os.O_* flags.
Method readChunk 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.
Method writeChunk Leaf should have been previously opened with suitable flags. Writes data to leaf from the given offset.
Method close Closes this node.
Method remove Removes this node. An error is raised if the node is a directory and is not empty.

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.
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 at 2011-10-27 16:17:34.