rclone/backend/hasher
Nick Craig-Wood c69eb84573 chunker,compress,crypt,hasher,union: fix rclone move a file over itself deleting the file
This fixes the Root() returned by the backend when it has returned
fs.ErrorIsFile.

Before this change it returned a root which included the file path.

Because Root() was wrong this caused the detection of the file being
moved over itself check to fail.

This adds an integration test to check it for all backends.

See: https://forum.rclone.org/t/rclone-move-chunker-dir-file-chunker-dir-deletes-all-file-chunks/43333/
2023-12-10 22:29:57 +00:00
..
commands.go accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
hasher.go chunker,compress,crypt,hasher,union: fix rclone move a file over itself deleting the file 2023-12-10 22:29:57 +00:00
hasher_internal_test.go hasher: support metadata 2022-06-29 17:30:37 +01:00
hasher_test.go features: add new interfaces OpenChunkWriter and ChunkWriter #7056 2023-08-12 17:55:01 +01:00
kv.go hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
object.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00