mirror of
https://github.com/rclone/rclone.git
synced 2025-03-17 20:27:52 +02:00
WalkRDirTree: return error if unknown item type
This commit is contained in:
parent
5d05df3124
commit
a3a436ce16
@ -385,6 +385,8 @@ func walkRDirTree(f Fs, path string, includeAll bool, maxLevel int, listR ListRF
|
|||||||
} else {
|
} else {
|
||||||
Debugf(x, "Excluded from sync (and deletion)")
|
Debugf(x, "Excluded from sync (and deletion)")
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
return errors.Errorf("unknown object type %T", entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user