diff options
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 6 |
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 |