method
makedirs
v1_8_7_330 -
Show latest stable
- 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.