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

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

Implements interfaces: twisted.vfs.ivfs.IFileSystemContainer

In-memory directory.
Method __init__ Undocumented
Method children Returns a list of 2 element tuples [ ( path, nodeObject ) ]. The first two elements of the list are '.' (the node itself), and '..' (the node parent).
Method child Returns a node object for child childName.
Method getMetadata Undocumented
Method createFile Creates a new file named childName under this folder.
Method createDirectory Creates a new folder named childName under this folder. An error is raised if the folder already exists.
Method exists Returns True if container has a child childName, False otherwise.

Inherited from _FakeNode:

Method create Undocumented
Method remove Undocumented
Method rename Undocumented
def __init__(self, name=None, parent=None, children=None): (source)
Undocumented
def children(self): (source)
Returns a list of 2 element tuples [ ( path, nodeObject ) ]. The first two elements of the list are '.' (the node itself), and '..' (the node parent).
def child(self, childName): (source)
Returns a node object for child childName.
RaisesNotFoundError if no child with that name exists.
def getMetadata(self): (source)
Undocumented
def createFile(self, childName, exclusive=False): (source)

Creates a new file named childName under this folder.

If exclusive is True (the default), an AlreadyExistsError is raised if the file already exists.
def createDirectory(self, childName): (source)
Creates a new folder named childName under this folder. An error is raised if the folder already exists.
def exists(self, childName): (source)
Returns True if container has a child childName, False otherwise.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.