WalkRDirTree: return error if unknown item type
This commit is contained in:
parent
5d05df3124
commit
a3a436ce16
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue