WalkRDirTree: return error if unknown item type

This commit is contained in:
Iakov Davydov
2017-11-17 21:51:11 +00:00
committed by Nick Craig-Wood
parent 5d05df3124
commit a3a436ce16
+2
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