summaryrefslogtreecommitdiff
path: root/lib/fileutils.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-09 14:41:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-09 14:41:24 +0000
commit88d6c083ea969b5e7b24315fd612958755afcc54 (patch)
tree4b17c2e0c1b4b362b97aa64b9e131de7e3a0a9ed /lib/fileutils.rb
parentc009be97e8f940912888885284ca78b0797ea655 (diff)
downloadruby-88d6c083ea969b5e7b24315fd612958755afcc54.tar.gz
* ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,
lib/shellwords.rb: get rid of shadowing outer local variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r--lib/fileutils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index c80a69e554..976b838838 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -212,11 +212,11 @@ module FileUtils
stack.push path
path = File.dirname(path)
end
- stack.reverse_each do |path|
+ stack.reverse_each do |dir|
begin
- fu_mkdir path, options[:mode]
+ fu_mkdir dir, options[:mode]
rescue SystemCallError => err
- raise unless File.directory?(path)
+ raise unless File.directory?(dir)
end
end
end