method

mkdir_p

ruby latest stable - Class: Bundler

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

mkdir_p(path, options = {})
public

No documentation available.

# File lib/bundler.rb, line 382
    def mkdir_p(path, options = {})
      if requires_sudo? && !options[:no_sudo]
        sudo "mkdir -p '#{path}'" unless File.exist?(path)
      else
        SharedHelpers.filesystem_access(path, :write) do |p|
          FileUtils.mkdir_p(p)
        end
      end
    end