Ejemplo n.º 1
0
def extract_data(inputdirs):
  "Lay out the filesystem structure on the dirs and dump database data there."  
  for inputdir in inputdirs:
    mapping = DBMap(inputdir)
    mapping.extract_records()
Ejemplo n.º 2
0
def check_db(inputdirs):
  """Test whether the filesystem and the database have the same information."""
  for inputdir in inputdirs:
    mapping = DBMap(inputdir)
    mapping.test()