diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Jan 19 22:21:23 2006 Minero Aoki <aamine@loveruby.net> + + * lib/fileutils.rb (mv): should remove file after copying. + [ruby-dev:28223] + Wed Jan 18 23:37:06 2006 Tanaka Akira <akr@m17n.org> * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): don't clobber %l7 of SPARC diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 697c308052..ea9f8ed872 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -501,6 +501,7 @@ module FileUtils File.rename s, d rescue Errno::EXDEV copy_entry s, d, true + File.unlink s end rescue SystemCallError raise unless options[:force] |