diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-19 13:22:13 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-19 13:22:13 +0000 |
| commit | 1383eeedbf01e1af9d8bdca65693c5fc95fb0782 (patch) | |
| tree | 74bae85e2e3848112e785a69b5ca55d55c4d6688 | |
| parent | c0d25ef758d2132f9955ea8bcb0aa600c29c21fa (diff) | |
| download | ruby-1383eeedbf01e1af9d8bdca65693c5fc95fb0782.tar.gz ruby-1383eeedbf01e1af9d8bdca65693c5fc95fb0782.tar.xz ruby-1383eeedbf01e1af9d8bdca65693c5fc95fb0782.zip | |
* lib/fileutils.rb (mv): should remove file after copying. [ruby-dev:28223]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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:19:18 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 646cfe07d..3e7989a28 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] |
