method

mkdir_p

ruby latest stable - Class: Bundler::FileUtils

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(list, mode: nil, noop: nil, verbose: nil)
public

Creates a directory and all its parent directories. For example,

Bundler::FileUtils.mkdir_p '/usr/local/lib/ruby'

causes to make following directories, if it does not exist.

  • /usr

  • /usr/local

  • /usr/local/lib

  • /usr/local/lib/ruby

You can pass several directories at a time in a list.