method

makedirs

Importance_1
v1_8_7_72 - Show latest stable - 0 notes - Class: File
makedirs(*dirs) public

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

    File.makedirs '/usr/lib/ruby'

causes the following directories to be made, if they do not exist.

    * /usr
    * /usr/lib
    * /usr/lib/ruby

You can pass several directories, each as a parameter. If the last parameter isn’t a String, verbose mode will be enabled.

Show source
Register or log in to add new notes.