Repository navigation
Conversation
Stage selections in the transfer queue and publish only when the newest request finishes. Keep staged files available for paste until a successful replacement or app exit. Refs TooonyChen#286
|
Thanks for splitting this out and for the careful follow-through. All five points from the #224 review are handled: the clipboard keeps its contents until the files are ready (also after a failed or canceled copy, and when two copies finish out of order), staged folders are removed on failure, cancel, supersede and quit, ordinary downloads behave as before (same results on base and here for an empty folder, a fifo, links and a re-download), errors follow the UI language, and the description says what was pasted where. Names from the server stay inside the staging folder, and Ctrl/Cmd+C keeps copying text in the terminal, the path field, the search field, the rename field and the breadcrumb editor. One thing blocks it, and it only appears now that #224's paste is on main: A newer copy deletes the staged files while an earlier paste is still uploading them. Paste uploads straight from the staging folder, and
The second case is silent data loss from the user's point of view, so it has to be closed before this merges. Any of these would do: keep the previous staged folder while an upload is reading from it (a reference count, or remove it when the last job using it ends), or have paste take its own copy or hold of the staged files. Independently of that, an upload whose source vanishes part-way should fail, not finish as Done; that can be its own small change if you prefer. Smaller, your call:
Generated by Claude Code |
|
Thanks for the review. I’ve pushed the fixes to PR #288 in commit A paste now keeps its staged files while it checks for conflicts, waits for overwrite confirmation, and uploads. A newer copy can replace the clipboard while the earlier paste continues using its files. If a source file goes missing during upload, the transfer reports a failure. I also added startup cleanup for staging folders left after a crash, made new copies cancel superseded copies immediately, moved Copy next to Paste, and added localized messages for unsafe file names and case-only name collisions. |
Summary
files or folders and use the context menu, Cmd+C on macOS, or Ctrl+C
on Windows and Linux.
to the clipboard. Failed or canceled transfers leave the clipboard
intact. Only the latest file-copy request can publish its result.
successfully copied files available for paste until another copy
succeeds or the app exits. Render copy errors in the current UI language.
This is the remote-to-local clipboard follow-up split out of #224.
Closes #286
Testing
Windows 11 ARM64, and Thunar 4.20.2 on Debian 13 ARM64. On all three,
the file with a space in its name and the nested file matched the
source byte for byte, and the empty subdirectory was preserved.
Linux, a test harness invoked the app's copy action, followed by
Ctrl+V in the native file manager.
go vet ./..., andgo tool mygo vetpassed. The fullgo test -race ./...run failedon
TestCloseAllMixed, which also fails on upstreammainin thesame environment.