Skip to content
Snippets Groups Projects
Commit 3a70e20e authored by Florent Thiery's avatar Florent Thiery
Browse files

do not descend if latest was found refs #21677

parent 1dd18017
No related branches found
No related tags found
No related merge requests found
......@@ -84,12 +84,12 @@ def check_local_backup(path, descend=True):
all_ok = False
else:
print('Backup %s is fine' % subd)
else:
if descend:
for dd in os.listdir(subd):
subsubd = os.path.join(subd, dd)
if os.path.isdir(subsubd):
all_ok = min(all_ok, check_local_backup(subsubd, descend=False))
else:
if descend:
for dd in os.listdir(subd):
subsubd = os.path.join(subd, dd)
if os.path.isdir(subsubd):
all_ok = min(all_ok, check_local_backup(subsubd, descend=False))
return all_ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment