Make sure that variable num_files_total_local is declared
This variable is declared in `if m:`. Of course if this codepath doesn't run, the variable is not declared an Python doesn't like this kind of surprise... Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
8c78a6cdfa
commit
2ab45cf4f0
@ -103,6 +103,7 @@ def file_copy(source, dest, progress_cb):
|
|||||||
if not source.endswith("/"):
|
if not source.endswith("/"):
|
||||||
source += "/"
|
source += "/"
|
||||||
|
|
||||||
|
num_files_total_local = 0
|
||||||
num_files_copied = 0 # Gets updated through rsync output
|
num_files_copied = 0 # Gets updated through rsync output
|
||||||
|
|
||||||
args = ['rsync', '-aHAXr']
|
args = ['rsync', '-aHAXr']
|
||||||
|
Loading…
Reference in New Issue
Block a user