WalkRDirTree: return error if unknown item type

This commit is contained in:
Iakov Davydov 2017-11-10 14:57:38 +01:00 committed by Nick Craig-Wood
parent 5d05df3124
commit a3a436ce16
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,8 @@ func walkRDirTree(f Fs, path string, includeAll bool, maxLevel int, listR ListRF
} else {
Debugf(x, "Excluded from sync (and deletion)")
}
default:
return errors.Errorf("unknown object type %T", entry)
}
}
return nil