Skip to content
Snippets Groups Projects
Verified Commit 705ab6da authored by David Beniamine's avatar David Beniamine
Browse files

Cleaner prints

parent bd1b345c
No related branches found
No related tags found
No related merge requests found
......@@ -44,13 +44,15 @@ def rename(base, path, dry_run, occ_path, user, php):
add_common_parent(os.path.dirname(f), dirs)
# Scanning
i = 1
total = len(dirs)
for d in dirs:
print('Scanning {} via occ'.format(d))
print('Scanning {} via occ ({}/{})'.format(d, i, total))
p = d.replace(base, '')
cmd = ['sudo', '-u', user, php, occ_path, 'files:scan', '--path', p]
print(cmd)
if not dry_run:
run(cmd)
i = i + 1
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment