mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-21 07:35:08 +00:00
Follow up to the merge of #10738. Use utils.AtomicUpdateFile to move downloaded data into place instead of hand rolling the stat/chmod/rename sequence. This fixes: - Permissions of existing destination files not being preserved, as the chmod was applied to an already closed file - An empty file being left at the destination if the rename failed, as the permissions probe opened the destination with O_CREATE - Symlinks at the destination being replaced by regular files - No fsync before the rename Also encode converted images into memory and write them atomically, so a failed encode no longer truncates and then deletes an existing destination file. |
||
|---|---|---|
| .. | ||
| ask | ||
| broadcast | ||
| choose_files | ||
| choose_fonts | ||
| clipboard | ||
| command_palette | ||
| desktop_ui | ||
| diff | ||
| dnd | ||
| hints | ||
| hyperlinked_grep | ||
| icat | ||
| notify | ||
| pager | ||
| panel | ||
| query_terminal | ||
| quick_access_terminal | ||
| remote_file | ||
| resize_window | ||
| show_key | ||
| ssh | ||
| themes | ||
| transfer | ||
| tui | ||
| unicode_input | ||
| __init__.py | ||
| runner.py | ||