diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 7dc46d9..3333307 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -211,14 +211,6 @@ def mkdir_p(list, mode: nil, noop: nil, verbose: nil) 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