Print files that are *not* deleted by cleanup

These are files that are not present on the remote source any more, but still
present locally. They also show up in the report.
This commit is contained in:
Joscha
2021-05-26 10:58:19 +02:00
parent a879c6ab6e
commit adb5d4ade3
3 changed files with 17 additions and 0 deletions

View File

@ -136,6 +136,9 @@ class Pferd:
for path in sorted(crawler.report.deleted_files):
something_changed = True
log.report(f" [bold bright_magenta]Deleted[/] {fmt_path(path)}")
for path in sorted(crawler.report.not_deleted_files):
something_changed = True
log.report(f" [bold bright_magenta]Not deleted[/] {fmt_path(path)}")
if not something_changed:
log.report(" Nothing changed")