Actions
Bug #7707
closedFileUtils.mv fails to move symlink between filesystems
Description
FileUtils.mv sometimes fails with a "Errno::ENOENT: No such file or directory - /path/to/symlink" when attempting to move a directory containing a symlink between filesystems. This may be because it moves the destination file before the symlink and then fails to move a "broken" symlink. Using the shell's "mv" instead works reliably.
A small test script is attached.
Files
Updated by ko1 (Koichi Sasada) over 11 years ago
- Assignee set to nobu (Nobuyoshi Nakada)
- Target version changed from 1.9.3 to 2.6
Updated by Anonymous about 10 years ago
In Homebrew, we have code that works around this by shelling out to mv
when necessary. It would be nice to have this fixed.
Updated by hsbt (Hiroshi SHIBATA) about 10 years ago
- Status changed from Open to Rejected
This issue is fixed by r46783.
If you still have this issue, Please reopen this.
Actions
Like0
Like0Like0Like0