Skip to content

Commit

Permalink
Do not update the timestamp in a dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
regan-sarwas committed Jul 20, 2021
1 parent a89cc74 commit b5015c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion remote-mover/remote_mover.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@ def timed_csv_read(since):
logger.error("Unable to rename/move folders.")
logger.exception(ex)
return False
return True
if args.dry_run:
logger.info("Not updating the timestamp on a dry run")
return False
else:
return True

date_limited.timestamped_operation(
timed_csv_read, timestamp_override=args.since
Expand Down

0 comments on commit b5015c4

Please sign in to comment.