bam path remap: use the 'size + sha' in bytes as a hash

This commit is contained in:
2014-12-11 16:31:56 +01:00
parent 81908c8b5d
commit 04ceba076e

View File

@@ -51,7 +51,7 @@ def _uuid_from_file(fn, block_size=1 << 20):
if not data: if not data:
break break
sha1.update(data) sha1.update(data)
return (size, sha1.hexdigest()) return (hex(size)[2:] + sha1.hexdigest()).encode()
def _iter_files(paths, check_ext=None): def _iter_files(paths, check_ext=None):