def addDirectory(self,directory):
     if not os.path.isdir(directory):
         self.log.warning("Directory does not exist:%s" %(directory))
         return
     setOfPaths = self.getSetOfPaths()
     if directory in setOfPaths:
         return self.store.collection[directory]
     output = archiveCollection()
     output.path.update(directory)
     self.store.addCollection(output)
     return output
 def addDirectory(self,directory):
     if not os.path.isdir(directory):
         self.log.warning("Directory does not exist:%s" %(directory))
         return
     setOfPaths = self.store.collection.keys()
     if directory in setOfPaths:
         return self.store.collection[directory]
     output = archiveCollection()
     output.path.update(directory)
     newinfo = self.store.addCollection(output)
     if newinfo == None:
         self.log.error("Failed to add:%s" %(output))
         return
     newinfo.path.update(directory)
     return newinfo