You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b0cbf1f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(fleet-sync): create the destination path, keep same-path syncs flat, show the real error (#66)
A Fleet Sync of ~/Desktop/me/ideas from bonita to dev2 failed with code 11
("io/write error") and the error was unreadable. Four fixes:
- Fleet Sync now passes --mkpath (via buildPlan overrides; the planner drops
it with a warning on rsync older than 3.2.3), so a path that does not exist
yet on a destination is created instead of failing with code 11.
- An empty (or identical) destination now sends the source into its parent,
so the same path lands at the same path. Before, rsync's trailing-slash rule
would have produced ~/Desktop/me/ideas/ideas.
- rsync's "mkdir ... failed: No such file or directory" is reported as what it
is (a missing parent folder), and code 11 no longer claims the destination
"may be full or read-only".
- A failed destination shows an error block under its row: the cause, rsync's
own lines (kept, not overwritten by the exit summary), selectable text, and a
Copy error button. It used to be a faint truncated snippet in an otherwise
empty panel, and the app's no-select default made it uncopyable.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
describe('a destination folder that cannot be created',()=>{
61
+
it('names the folder and the real cause, not a full disk',()=>{
62
+
conststderr='rsync: [Receiver] mkdir "/home/anthony/Desktop/me/ideas" failed: No such file or directory (2)\nrsync error: error in file IO (code 11) at main.c(800) [Receiver=3.4.1]'
return`The destination folder ${mkdir[1]} could not be created because a folder above it does not exist on that side. Create it first, or let DiskPush create the whole path (Fleet Sync does, with --mkpath, on rsync 3.2.3 or newer).`
76
+
}
70
77
if(/Nospaceleftondevice/i.test(stderr)){
71
78
return'Transfer stopped because the destination filesystem is out of space. Partial transfer data was preserved where possible.'
0 commit comments