1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

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

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