Issue #7707 has been updated by Hiroshi SHIBATA.

Status changed from Open to Rejected

This issue is fixed by r46783.

If you still have this issue, Please reopen this.

----------------------------------------
Bug #7707: FileUtils.mv fails to move symlink between filesystems
https://bugs.ruby-lang.org/issues/7707#change-48309

* Author: Martin Prtel
* Status: Rejected
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: lib
* Target version: next minor
* ruby -v: ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]
* Backport: 
----------------------------------------
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 filebefore 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--------------------------------
test.rb (627 Bytes)


-- 
https://bugs.ruby-lang.org/