t.v.b.i.FakeFile(_FakeNode) : class documentation

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

Implements interfaces: twisted.vfs.ivfs.IFileSystemLeaf

In-memory file.
Method __init__ Undocumented
Method open Opens the file with flags. Flags should be a bitmask based on the os.O_* flags.
Method getMetadata Undocumented
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 children Undocumented

Inherited from _FakeNode:

Method create Undocumented
Method remove Undocumented
Method rename Undocumented
def __init__(self, name=None, parent=None, data=''): (source)
Undocumented
def open(self, flags): (source)
Opens the file with flags. Flags should be a bitmask based on the os.O_* flags.
def getMetadata(self): (source)
Undocumented
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 children(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.