| Trees | Index | Help |
|---|
| Package libconfix :: Package core :: Package filesys :: Module vfs_file :: Class VFSFile |
|
object--+ |VFSEntry--+ | VFSFile
File,
OverlayFileA file in the virtual filesystem game.
| Method Summary | |
|---|---|
Add lines to the file. | |
Does the file come from an overlay? Sadly, I have to burden the interface with that - at least as long as something better comes to mind. | |
Return the lines of the file, with newlines removed. | |
Truncate the file. | |
| 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)... | |
| Method Details |
|---|
add_lines(self, lines)Add lines to the file. The lines are strings, newlines will be added. |
is_overlayed(self)Does the file come from an overlay? Sadly, I have to burden the interface with that - at least as long as something better comes to mind. Fact is that we need to know that when we generate input for the backend build tool. |
lines(self)Return the lines of the file, with newlines removed. |
truncate(self)Truncate the file. |
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Fri Nov 23 16:56:38 2007 | http://epydoc.sf.net |