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 /lib/fileutils.rb | |
| 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
Diffstat (limited to 'lib/fileutils.rb')
| -rw-r--r-- | lib/fileutils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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] |
