1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00
rclone/backend/union
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
..
common union: add min_free_space option for lfs/eplfs policies - fixes #6071 2022-06-16 22:13:50 +01:00
policy union: the root folder shows the modtime configured by --default-time #6986 2023-05-04 15:03:11 +01:00
upstream union: add :writback to act as a simple cache 2023-09-04 12:03:26 +01:00
entry.go union: add :writback to act as a simple cache 2023-09-04 12:03:26 +01:00
errors_test.go union: allow errors to be unwrapped for inspection 2023-06-10 14:39:41 +01:00
errors.go union: allow errors to be unwrapped for inspection 2023-06-10 14:39:41 +01:00
union_internal_test.go fstest: remove spurious contents return from PutTestContents and friends 2022-06-29 11:18:02 +01:00
union_test.go features: add new interfaces OpenChunkWriter and ChunkWriter #7056 2023-08-12 17:55:01 +01:00
union.go chunker,compress,crypt,hasher,union: fix rclone move a file over itself deleting the file 2023-12-10 22:29:57 +00:00