X-Git-Url: http://git.treefish.org/~alex/photosort.git/blobdiff_plain/3fb5c5590d4fd533843feb9544c1e45ab8aa6f7f..5ad2c3b2ac3baf7b9e64d07a7f0b37d3493a03d4:/src/migrator.py diff --git a/src/migrator.py b/src/migrator.py index 73650ce..7bd32e6 100644 --- a/src/migrator.py +++ b/src/migrator.py @@ -29,10 +29,11 @@ class Migrator: dst_file_path = os.path.join(dst_dir, src_file_name) if not os.path.exists(dst_file_path): - alt_dst_dir = misc.find_file(self._base_dst_dir, - src_file_name, - os.path.getsize(src_file_path), - exclude_dir=self._base_src_dir) + alt_dst_dir = misc.find_alt_file(self._base_dst_dir, + src_file_name, + os.path.getsize(src_file_path), + meta_time, + exclude_dir=self._base_src_dir) if alt_dst_dir: dst_dir = alt_dst_dir dst_file_path = os.path.join(dst_dir, src_file_name)