summaryrefslogtreecommitdiff
path: root/lib/fileutils.rb
diff options
context:
space:
mode:
-rw-r--r--lib/fileutils.rb4
1 files changed, 1 insertions, 3 deletions
@@ -220,12 +220,10 @@ module FileUtils
end
stack = []
- until path == stack.last # dirname("/")=="/", dirname("C:/")=="C:/"
stack.push path
path = File.dirname(path)
- break if File.directory?(path)
end
- stack.pop if path == stack.last # root directory should exist
stack.reverse_each do |dir|
begin
fu_mkdir dir, mode