

def CalculateHashes(self, base_path_specs, output_writer):
    'Recursive calculates hashes starting with the base path specification.\n\n    Args:\n      base_path_specs: a list of source path specification (instances\n                       of dfvfs.PathSpec).\n      output_writer: the output writer (instance of StdoutWriter).\n    '
    for base_path_spec in base_path_specs:
        file_system = resolver.Resolver.OpenFileSystem(base_path_spec)
        file_entry = resolver.Resolver.OpenFileEntry(base_path_spec)
        if (file_entry is None):
            logging.warning('Unable to open base path specification:\n{0:s}'.format(base_path_spec.comparable))
            continue
        self._CalculateHashesFileEntry(file_system, file_entry, '', output_writer)

dataset/ETHPy150Open log2timeline/dfvfs/examples/recursive_hasher.py RecursiveHasher.CalculateHashes/original