Permalink
Browse files

fix windows/file

  • Loading branch information...
quix committed Aug 9, 2009
1 parent 16e4ecb commit 77bbaae47fbe11b08fb8626ba755dcd8cfd15c16
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/quix/ext/windows/file.rb
@@ -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

0 comments on commit 77bbaae

Please sign in to comment.