def decompress_file(src_path, target_path, scheme):
  if scheme == Scheme.RAW:
    copyfile_atomic(src_path, target_path)
  elif scheme == Scheme.LZO:
    decompress_lzo(src_path, target_path)
  else:
    raise NotImplementedError("storage scheme '%s' not supported (old version of Zinc client?)" % scheme)
  # TODO Avoid recomputing MD5.
  fp = Fingerprint.of_file(target_path, compute_md5=True)
  return fp
dataset/ETHPy150Open bloomreach/zinc/zinc.py/decompress_file/original