Make directory path: Difference between revisions
→{{header|Ruby}}: Added remark about 2 aliases
m (→{{header|Scala}}: Example alternative for library function) |
(→{{header|Ruby}}: Added remark about 2 aliases) |
||
Line 183:
FileUtils.mkdir_p("path/to/dir") </lang>
mkdir_p also takes an array of pathnames instead of a single pathname as an argument.
mkdir_p is aliased as: mkpath, makedirs.
=={{header|Scala}}==
<lang Scala>new java.io.File("/path/to/dir").mkdirs</lang>
|