Skip to content

Commit

Permalink
fix windows/file
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed Aug 23, 2009
1 parent 16e4ecb commit 77bbaae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/quix/ext/windows/file.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ def rename(source, dest)
# For case-insensitive systems, we must move the file elsewhere # For case-insensitive systems, we must move the file elsewhere
# before changing case. # before changing case.
# #
temp = dest + ".rename.temp" temp = "#{dest}.rename.temp"
rename(source, temp) quix_original_rename(source, temp)
begin begin
rename(temp, dest) quix_original_rename(temp, dest)
rescue rescue
rename(temp, source) quix_original_rename(temp, source)
raise raise
end end
else else
Expand Down

0 comments on commit 77bbaae

Please sign in to comment.