From: "ko1 (Koichi Sasada)" Date: 2013-02-18T08:54:10+09:00 Subject: [ruby-core:52407] [ruby-trunk - Bug #7707] FileUtils.mv fails to move symlink between filesystems Issue #7707 has been updated by ko1 (Koichi Sasada). Assignee set to nobu (Nobuyoshi Nakada) Target version changed from 1.9.3 to next minor ---------------------------------------- Bug #7707: FileUtils.mv fails to move symlink between filesystems https://bugs.ruby-lang.org/issues/7707#change-36461 Author: mpartel (Martin P��rtel) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: lib Target version: next minor ruby -v: ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux] 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. -- http://bugs.ruby-lang.org/