t.v.p.FileSystem : class documentation

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

Implements interfaces: twisted.vfs.pathutils.IFileSystem

Wraps unix-like VFS backends, in which directory separator is '/', root's path is '/', and all directories have '.' and '..'.

Effectively, this is just a convenience wrapper around the other functions in this module which remembers the root node and the current working directory.
Method __init__ Undocumented
Method absPath returns a normalized absolutized version of the pathname path
Method splitPath returns a normalized absolutized version of the pathname path split on the filesystem's directory seperator
Method joinPath joins the two paths, tail and head
Method dirname returns the directory name of the container for path
Method basename returns the base name of pathname path
Method fetch returns a node object representing the file with pathname path
Method _getImplicitChildren No summary
def __init__(self, root, pathToCWD='/'): (source)
Undocumented
def absPath(self, path): (source)
returns a normalized absolutized version of the pathname path
def splitPath(self, path): (source)
returns a normalized absolutized version of the pathname path split on the filesystem's directory seperator
def joinPath(self, tail, head): (source)
joins the two paths, tail and head
def dirname(self, path): (source)
returns the directory name of the container for path
def basename(self, path): (source)
returns the base name of pathname path
def fetch(self, pathToFile='.'): (source)
returns a node object representing the file with pathname path
def _getImplicitChildren(self, dir): (source)

returns implicit children for a given dir this is placed in the filesystem so that the same directory can have different implicit children depending on what sort of filesystem it has been placed in

(This may not be the best idea)

returns a list of 2 element tuples, [ ( path, nodeObject ) ], e.g.:
   [ ( ".", dir ), ( "..", dir.parent ) ]
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.