Package libconfix :: Package core :: Package filesys :: Module vfs_file :: Class VFSFile
[show private | hide private]
[frames | no frames]

Type VFSFile

object --+    
         |    
  VFSEntry --+
             |
            VFSFile

Known Subclasses:
File, OverlayFile

A file in the virtual filesystem game.

Method Summary
  add_lines(self, lines)
Add lines to the file.
  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.
  lines(self)
Return the lines of the file, with newlines removed.
  truncate(self)
Truncate the file.
    Inherited from VFSEntry
  __init__(self)
  abspath(self)
Return the absolute path to this object.
  del_property(self, name)
  filesystem(self)
  get_property(self, name)
  is_persistent(self)
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).
  name(self)
  parent(self)
  relpath(self, from_dir)
Return the relative path from dir to this object.
  set_filesystem(self, filesystem)
  set_parent(self, parent)
  set_property(self, name, value)
  sync(self)
Write back to the backing storage, whatever this means.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
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.

Generated by Epydoc 2.1 on Fri Nov 23 16:56:38 2007 http://epydoc.sf.net