Package fcp :: Module freenetfs :: Class FileRecord
[hide private]
[frames] | no frames]

Class FileRecord

source code

object --+    
         |    
      list --+
             |
            FileRecord

Encapsulates the info for a file, and can be returned by getattr

Instance Methods [hide private]
new empty list
__init__(self, fs, statrec=None, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getattr__(self, attr)
Support read of pseudo-attributes:
source code
 
__setattr__(self, attr, val)
Support write of pseudo-attributes:
source code
 
write(self, buf) source code
 
addChild(self, rec)
Adds a child file rec as a child of this rec
source code
 
delChild(self, rec)
Tries to remove a child entry
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __str__, __subclasshook__

Class Variables [hide private]
  haschanged = False
  hasdata = False
  canwrite = False
  iswriting = False
  uri = None
hash(x)

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fs, statrec=None, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns: new empty list
Overrides: object.__init__

__getattr__(self, attr)
(Qualification operator)

source code 

Support read of pseudo-attributes:

  • mode, isdir, ischr, isblk, isreg, isfifo, islnk, issock,
  • inode, dev, nlink, uid, gid, size, atime, mtime, ctime

__setattr__(self, attr, val)

source code 

Support write of pseudo-attributes:

  • mode, isdir, ischr, isblk, isreg, isfifo, islnk, issock,
  • inode, dev, nlink, uid, gid, size, atime, mtime, ctime
Overrides: object.__setattr__