From 633e10c86c1f5bd167f47802312be33e6a1af311 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 6 Mar 2020 20:04:12 +0100 Subject: [PATCH] Improve reporting for the "rsync" primitive When uploading a larger code base to the device, rshell reports well about "Adding ..." files when actually uploading them. However, if timestamps haven't changed at all, it would be silent for a while, while checking all the files about whether they should be updated without giving appropriate feedback to the user. This change introduces a "Checking ..." message for each file in order to be more verbose about what is actually going on. --- rshell/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rshell/main.py b/rshell/main.py index 5bb5b7a..3ced410 100755 --- a/rshell/main.py +++ b/rshell/main.py @@ -932,6 +932,7 @@ def rsync(src_dir, dst_dir, mirror, dry_run, print_func, recursed, sync_hidden): "'{}' is a directory. Ignoring" print_err(msg.format(src_filename, dst_filename)) else: + print_func('Checking {}'.format(dst_filename)) if stat_mtime(src_stat) > stat_mtime(dst_stat): msg = "{} is newer than {} - copying" print_func(msg.format(src_filename, dst_filename))