diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 7dc46d99e8..3333307e22 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -211,14 +211,6 @@ module FileUtils list.each do |item| path = remove_trailing_slash(item) - # optimize for the most common case - begin - fu_mkdir path, mode - next - rescue SystemCallError - next if File.directory?(path) - end - stack = [] until File.directory?(path) stack.push path