mkdir_p(list, options = {}) private

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.
January 22, 2016
0 thanks

Errno::EEXIST

When Errno::EEXIST is raised, it indicates there are permission issues, rather than an existing item.