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 | 3efb9e43b63217dfd4743c0b06cda791f7b27894 (patch) | |
tree | 74bae85e2e3848112e785a69b5ca55d55c4d6688 /lib/fileutils.rb | |
parent | 835d90b94ec66ecaf4ff4c54e080e50555c1ed3a (diff) | |
download | ruby-3efb9e43b63217dfd4743c0b06cda791f7b27894.tar.gz |
* 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
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 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] |