Module inotify :: Class FileTools
[show private | hide private]
[frames | no frames]

Type FileTools

object --+
         |
        FileTools

Known Subclasses:
ProcINotify

Used to manipulate (read and write) files.
Method Summary
  __init__(self, fpath)
  __repr__(self)
str read(self)
Read content from self._fpath and return it.
  write(self, data)
Write data to self._fpath.
    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
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, fpath)
(Constructor)

Parameters:
fpath - file's path
           (type=str)
Overrides:
__builtin__.object.__init__

read(self)

Read content from self._fpath and return it.
Returns:
self._fpath's content.
           (type=str)

write(self, data)

Write data to self._fpath.
Parameters:
data - data to write.
           (type=str)

Generated by Epydoc 2.1 on Wed Mar 29 03:46:07 2006 http://epydoc.sf.net