From 04ceba076e73ebc636f6e54cf076b5698f160976 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 11 Dec 2014 16:31:56 +0100 Subject: [PATCH] bam path remap: use the 'size + sha' in bytes as a hash --- modules/blendfile_path_remap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blendfile_path_remap.py b/modules/blendfile_path_remap.py index 09de997..99baa7b 100644 --- a/modules/blendfile_path_remap.py +++ b/modules/blendfile_path_remap.py @@ -51,7 +51,7 @@ def _uuid_from_file(fn, block_size=1 << 20): if not data: break sha1.update(data) - return (size, sha1.hexdigest()) + return (hex(size)[2:] + sha1.hexdigest()).encode() def _iter_files(paths, check_ext=None):