forked from TrueCloudLab/rclone
Before this fix `NewObject` could return a wrapped `fs.Object(nil)` which caused a crash. This changes the interface of `wrapObject` so it returns an error which must be checked. This forces the callers to return a `nil` object rather than an `fs.Object(nil)`. See: https://forum.rclone.org/t/panic-in-hasher-when-mounting-with-vfs-cache-and-not-synced-data-in-the-cache/29697/11 |
||
---|---|---|
.. | ||
commands.go | ||
hasher.go | ||
hasher_internal_test.go | ||
hasher_test.go | ||
kv.go | ||
object.go |