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
Expand Up @@ -8,12 +8,12 @@ def rename(source, dest)
# For case-insensitive systems, we must move the file elsewhere
# before changing case.
#
temp = dest + ".rename.temp"
rename(source, temp)
temp = "#{dest}.rename.temp"
quix_original_rename(source, temp)
begin
rename(temp, dest)
quix_original_rename(temp, dest)
rescue
rename(temp, source)
quix_original_rename(temp, source)
raise
end
else
Expand Down

0 comments on commit 77bbaae

Please sign in to comment.