Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.plugins.fsck_plugin.CheckDirectory Class Reference
Inheritance diagram for obnamlib.plugins.fsck_plugin.CheckDirectory:
Inheritance graph
[legend]
Collaboration diagram for obnamlib.plugins.fsck_plugin.CheckDirectory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def do

Public Attributes

 client_name
 genid
 dirname
 name

Detailed Description

Definition at line 103 of file fsck_plugin.py.


Constructor & Destructor Documentation

def obnamlib.plugins.fsck_plugin.CheckDirectory.__init__ (   self,
  client_name,
  genid,
  dirname 
)

Definition at line 105 of file fsck_plugin.py.

00105 
00106     def __init__(self, client_name, genid, dirname):
00107         self.client_name = client_name
00108         self.genid = genid
00109         self.dirname = dirname
00110         self.name = '%s:%s:%s' % (client_name, genid, dirname)
        

Member Function Documentation

Definition at line 111 of file fsck_plugin.py.

00111 
00112     def do(self):
00113         logging.debug('Checking client=%s genid=%s dirname=%s' %
00114                         (self.client_name, self.genid, self.dirname))
00115         if self.repo.current_client != self.client_name:
00116             self.repo.open_client(self.client_name)
00117         self.repo.get_metadata(self.genid, self.dirname)
00118         for basename in self.repo.listdir(self.genid, self.dirname):
00119             pathname = os.path.join(self.dirname, basename)
00120             metadata = self.repo.get_metadata(self.genid, pathname)
00121             if metadata.isdir():
00122                 yield CheckDirectory(self.client_name, self.genid, pathname)
00123             else:
00124                 yield CheckFile(self.client_name, self.genid, pathname)
00125 


Member Data Documentation

Definition at line 106 of file fsck_plugin.py.

Definition at line 108 of file fsck_plugin.py.

Definition at line 107 of file fsck_plugin.py.

Definition at line 109 of file fsck_plugin.py.


The documentation for this class was generated from the following file: