pruner: skip placeholders + FSes without correspondents on source

fixes #126
This commit is contained in:
Christian Schwarz
2019-03-13 19:23:05 +01:00
parent b85ec52387
commit d78d20e2d0
2 changed files with 48 additions and 3 deletions

View File

@@ -505,6 +505,10 @@ func (t *tui) renderPrunerReport(r *pruner.Report) {
for _, fs := range all {
t.write(rightPad(fs.Filesystem, maxFSname, " "))
t.write(" ")
if !fs.SkipReason.NotSkipped() {
t.printf("skipped: %s\n", fs.SkipReason)
continue
}
if fs.LastError != "" {
t.printf("ERROR (%d): %s\n", fs.ErrorCount, fs.LastError) // whitespace is padding
continue