Skip to content

Commit

Permalink
force check integrity before listing from remote storage
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyendc-systran committed Nov 6, 2020
1 parent 1f2671d commit 745f6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systran_storages/storages/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get(self, remote_path, local_path, directory=False, check_integrity_fn=None)
if not os.path.isdir(local_path):
os.makedirs(local_path)
with lock(local_path):
if check_integrity_fn is not None and check_integrity_fn(local_path):
if check_integrity_fn is not None and check_integrity_fn(local_path, force=True):
LOGGER.info('Integrity check is successful for local directory: %s', local_path)
return
LOGGER.info('Continue to synchronize : %s', local_path)
Expand Down

0 comments on commit 745f6f6

Please sign in to comment.