vcom/internal/transfer
vrubelroman 86c110f0b1 feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2)
Every file is written to .vcom-part-<rand>-<name>, closed (a Close error
fails the item: N-P2-6), chmod/chtimes'ed and only then renamed over the
target, so a failed or cancelled overwrite keeps the old file (N-P0-4) and
leaves no temp. Without atomic replace the old file is renamed aside and
restored on failure. Directories are merged, never replaced (N-P0-7), and
get their real mode/mtime post-order (N-P1-17); symlinks are copied as
links, broken ones too (N-P1-8); mode and mtime are preserved (N-P1-9);
FIFOs and devices are skipped with a warning. The copy loop goes through a
ctx-aware reader with Size() and throttled byte progress. Conflict and
error policies are wired in here; their tests follow in 3.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:00:31 +03:00
..
atomic.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
conflict.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
errors.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
execute.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
execute_test.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
helpers_test.go feat(transfer): request/plan types, FSSource and Prepare (3.1) 2026-11-01 03:56:21 +03:00
move.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
prepare.go feat(transfer): request/plan types, FSSource and Prepare (3.1) 2026-11-01 03:56:21 +03:00
prepare_test.go feat(transfer): request/plan types, FSSource and Prepare (3.1) 2026-11-01 03:56:21 +03:00
reader.go feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2) 2026-11-01 04:00:31 +03:00
source.go feat(transfer): request/plan types, FSSource and Prepare (3.1) 2026-11-01 03:56:21 +03:00
types.go feat(transfer): request/plan types, FSSource and Prepare (3.1) 2026-11-01 03:56:21 +03:00