kitty/kittens
Kovid Goyal ef58de6850
Transfer kitten: Replace existing links when receiving files
Receiving a regular file over an existing symlink or hard link used to
truncate and overwrite the file the link points to. Instead, write
received files to a temporary file in the destination directory and
atomically rename it into place once the transfer completes, as was
already done for delta transfers. This also means interrupted transfers
no longer leave truncated files behind.

If the destination directory is not writable, fall back to writing in
place, but only for regular files with a single link, so that no other
file can be affected.

Also use stat rather than lstat when deciding whether to use delta
transfers, so that symlinks to large files can use them, and remove
the temporary file of failed or aborted delta transfers.

Closes #10713
2026-10-21 20:35:07 +05:30
..
ask autoformat 2026-08-05 05:32:56 +05:30
broadcast Merge origin/master into go-kitten-ports 2026-08-18 16:18:54 +05:30
choose_files Fix #10658 2026-10-13 08:21:05 +05:30
choose_fonts autoformat 2026-08-05 05:32:56 +05:30
clipboard clipboard: Inform clients of too much data 2026-08-25 09:19:46 +05:30
command_palette Fix #10711 2026-10-21 10:45:01 +05:30
desktop_ui Nicer error handling for failure to launch panels 2026-09-26 07:37:58 +05:30
diff Apply deferred directory permissions children first when extracting tar 2026-10-16 19:12:51 +05:30
dnd Fix explicit stdin sources in the DnD kitten 2026-08-28 13:19:25 +05:00
hints Cleanup previous PR 2026-09-28 06:55:24 +05:30
hyperlinked_grep
icat icat: Write unicode placeholders in a single write 2026-10-08 12:00:20 -04:00
notify Fix notification close mode 2026-08-28 11:20:05 +05:00
pager autoformat 2026-08-05 05:32:56 +05:30
panel Fix #10603 2026-10-05 04:16:54 +05:30
query_terminal autoformat 2026-08-05 05:32:56 +05:30
quick_access_terminal Fix #10603 2026-10-05 04:16:54 +05:30
remote_file ... 2026-08-20 08:07:21 +05:30
resize_window Cleanup previous PR 2026-10-09 19:51:38 +05:30
show_key autoformat 2026-08-05 05:32:56 +05:30
ssh ssh kitten: Reconnect when a shared connection has silently died 2026-10-19 07:20:03 +05:30
themes autoformat 2026-08-05 05:32:56 +05:30
transfer Transfer kitten: Replace existing links when receiving files 2026-10-21 20:35:07 +05:30
tui Make ty 79 happy 2026-09-08 09:35:54 +05:30
unicode_input autoformat 2026-08-05 05:32:56 +05:30
__init__.py
runner.py autoformat 2026-08-05 05:32:56 +05:30