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

descend another depth in the folders, refs #21677

parent 0c2fc1be
No related branches found
No related tags found
No related merge requests found
...@@ -83,8 +83,9 @@ def check_local_backup(path): ...@@ -83,8 +83,9 @@ def check_local_backup(path):
else: else:
print('Backup %s is fine' % subd) print('Backup %s is fine' % subd)
else: else:
print('Backup %s is not okay (no %s file)' % (subd, latest)) for dd in os.listdir(subd):
all_ok = False subsubd = os.path.join(subd, dd)
all_ok = min(all_ok, check_local_backup(subsubd))
return all_ok 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