| Trees | Index | Help |
|---|
| Package libconfix :: Package core :: Package filesys :: Module vfs_directory :: Class VFSDirectory |
|
object--+ |VFSEntry--+ | VFSDirectory
Directory,
OverlayDirectoryA directory node in the virtual filesystem game. As such it provides the necessary parent/child relations. Note that, for now, derived classes are required to use this implementation of these relations. It is not currently possible for derived classes to provide their own.
| Method Summary | |
|---|---|
__init__(self)
| |
Add a directory entry under the specified name. | |
Return list of all the entries of a directory, as [(name, entry)]. | |
Return the name under which the given entry has been added. | |
Starting at this object, find a descendant at path. | |
Get a directory entry by name. | |
Set my and my children's filesystem. | |
| Inherited from VFSEntry | |
Return the absolute path to this object. | |
| |
| |
| |
Does this entry correspond to a physical OS file system entry that can be accessed directly? This information is quite useful under certain circumstances; for example when it is better to pass the file to python's execfile(), rather than exec'ing it from memory (execfile() gives better error messages). | |
| |
| |
Return the relative path from dir to this object. | |
| |
| |
Write back to the backing storage, whatever this means. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Class Variable Summary | |
|---|---|
classobj |
AlreadyMounted = libconfix.core.filesys.vfs_directory.AlreadyMounted |
| Method Details |
|---|
add(self, name, entry)Add a directory entry under the specified name. Returns the added entry (for convenience). |
entries(self)Return list of all the entries of a directory, as [(name, entry)]. |
entryname(self, entry)Return the name under which the given entry has been added. |
find(self, path)Starting at this object, find a descendant at path. If none is found, return None. |
get(self, name)Get a directory entry by name. Return None if not found. |
set_filesystem(self, filesystem)Set my and my children's filesystem. |
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Fri Nov 23 16:56:34 2007 | http://epydoc.sf.net |