From 3efb9e43b63217dfd4743c0b06cda791f7b27894 Mon Sep 17 00:00:00 2001 From: aamine Date: Thu, 19 Jan 2006 13:22:13 +0000 Subject: [PATCH] * lib/fileutils.rb (mv): should remove file after copying. [ruby-dev:28223] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/fileutils.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index d89a082cfa..dfee893aa4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 19 22:19:18 2006 Minero Aoki + + * lib/fileutils.rb (mv): should remove file after copying. + [ruby-dev:28223] + Wed Jan 18 23:37:06 2006 Tanaka Akira * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): don't clobber %l7 of SPARC diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 646cfe07d3..3e7989a287 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -500,6 +500,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]