rclone/fs/operations
Janne Hellsten 5c594fea90 operations: implement uploads to temp name with --inplace to disable
When copying to a backend which has the PartialUploads feature flag
set and can Move files the file is copied into a temporary name first.
Once the copy is complete, the file is renamed to the real
destination.

This prevents other processes from seeing partially downloaded copies
of files being downloaded and prevents overwriting the old file until
the new one is complete.

This also adds --inplace flag that can be used to disable the partial
file copy/rename feature.

See #3770

Co-authored-by: Nick Craig-Wood <nick@craig-wood.com>
2023-05-09 16:28:10 +01:00
..
check_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
check.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
dedupe.go accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
listdirsorted_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
lsjson_test.go rc: fix operations/stat with trailing / 2023-03-22 16:22:45 +00:00
lsjson.go lsjson: make --stat more efficient 2023-04-28 14:31:05 +01:00
multithread_test.go mockfs: make it so it can be registered as an Fs 2023-04-28 14:31:05 +01:00
multithread.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
operations_internal_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
operations_test.go operations: implement uploads to temp name with --inplace to disable 2023-05-09 16:28:10 +01:00
operations.go operations: implement uploads to temp name with --inplace to disable 2023-05-09 16:28:10 +01:00
rc_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
rc.go doc: Clarify the srcFs and dstRs when using local filesystem 2023-03-24 11:25:39 +00:00
reopen_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
reopen.go build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00