Flowdock
method

mkdir_p

Importance_1
mkdir_p(list, options = {}) public

Options: mode noop verbose

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

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.

Show source
Register or log in to add new notes.