From 1383eeedbf01e1af9d8bdca65693c5fc95fb0782 Mon Sep 17 00:00:00 2001 From: aamine Date: Thu, 19 Jan 2006 13:22:13 +0000 Subject: * 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 --- lib/fileutils.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/fileutils.rb') 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] -- cgit