Skip to content

Commit 745f6f6

Browse files
author
Dang Chuan Nguyen
committed
force check integrity before listing from remote storage
1 parent 1f2671d commit 745f6f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

systran_storages/storages/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def get(self, remote_path, local_path, directory=False, check_integrity_fn=None)
107107
if not os.path.isdir(local_path):
108108
os.makedirs(local_path)
109109
with lock(local_path):
110-
if check_integrity_fn is not None and check_integrity_fn(local_path):
110+
if check_integrity_fn is not None and check_integrity_fn(local_path, force=True):
111111
LOGGER.info('Integrity check is successful for local directory: %s', local_path)
112112
return
113113
LOGGER.info('Continue to synchronize : %s', local_path)

0 commit comments

Comments
 (0)