rclone/fs/operations
Nick Craig-Wood 07cf5f1d25 operations: fix .rclonelink files not being converted back to symlinks
Before this change the new partial downloads code was causing symlinks
to be copied as regular files.

This was because the partial isn't named .rclonelink so the local
backend saves it as a normal file and renaming it to .rclonelink
doesn't cause it to become a symlink.

This fixes the problem by not copying .rclonelink files using the
partials mechanism but reverting to the previous --inplace behaviour.

This could potentially be fixed better in the future by changing the
local backend Move to change files to and from symlinks depending on
their name. However this was deemed too complicated for a point
release.

This also adds a test in the local backend. This test should ideally
be in operations but it isn't easy to put it there as operations knows
nothing of symlinks.

Fixes #7101
See: https://forum.rclone.org/t/reggression-in-v1-63-0-links-drops-the-rclonelink-extension/39483
2023-07-10 14:30:59 +01:00
..
check.go operations: reopen downloads on error when using check --download and cat 2023-06-10 14:42:29 +01:00
check_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
dedupe.go accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
dedupe_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
listdirsorted_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
lsjson.go lsjson: make --stat more efficient 2023-04-28 14:31:05 +01:00
lsjson_test.go rc: fix operations/stat with trailing / 2023-03-22 16:22:45 +00:00
multithread.go fs: allow setting a write buffer for multithread 2023-06-23 18:44:43 +01:00
multithread_test.go operations: Don't use multi-thread copy if the backend doesn't support it #6915 2023-05-09 17:40:58 +01:00
operations.go operations: fix .rclonelink files not being converted back to symlinks 2023-07-10 14:30:59 +01:00
operations_internal_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
operations_test.go operations: ignore partial tests on backends which don't support them 2023-05-17 17:03:26 +01:00
rc.go doc: Clarify the srcFs and dstRs when using local filesystem 2023-03-24 11:25:39 +00:00
rc_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
reopen.go operations: reopen downloads on error when using check --download and cat 2023-06-10 14:42:29 +01:00
reopen_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00