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
filesystem: move_file fails across filesystems (EXDEV) #5188
moveFile in src/filesystem/lib.ts checks that the destination does not exist and then calls fs.rename. rename cannot cross a device boundary, so a move between two allowed directories on different mounts (a container bind mount, a network share, a second disk) fails with EXDEV.
Expected
On EXDEV, fall back to copying and then removing the source. The fallback keeps the no-overwrite contract, leaves no partial destination behind if it fails, and does not follow symlinks out of the allowed directories while copying.
The PR(s) above targeted the pre-refactor code and are closed as part of the backlog triage in #4875; this issue is where the work continues, with the PR(s) as a prototype. Thank you to their authors.
Activity
cliffhall commentedon Oct 20, 2026
Triage: Priority Medium (total 6)
buglabelFiled from the PR backlog triage (#4877). Board: Servers V2 (#43), Status
Incoming, awaiting maintainer review (no milestone yet).fix(filesystem): move a file across filesystems by copying it (#5188)
fix(filesystem): move a file across filesystems by copying it (#5188)
fix(filesystem): move a file across filesystems by copying it (#5188)
cliffhall commentedon Oct 27, 2026
Fixed by #5322, merged into v2/main.