Make directory path: Difference between revisions
restore alphabetic order
(Perl 6 entry) |
(restore alphabetic order) |
||
Line 8:
If the directory already exists, return successfully.
Ideally implementations will work equally well cross-platform (on windows, linux, and OS X).
=={{header|Go}}==▼
The standard packages include <tt>[http://golang.org/pkg/os/#MkdirAll os.MkdirAll]</tt> which does exactly this.▼
<lang go> os.MkdirAll("/tmp/some/path/to/dir", 0770)</lang>▼
=={{header|Perl 6}}==
Line 13 ⟶ 17:
<lang perl6>mkdir 'path/to/dir'</lang>
▲=={{header|Go}}==
▲The standard packages include <tt>[http://golang.org/pkg/os/#MkdirAll os.MkdirAll]</tt> which does exactly this.
▲<lang go> os.MkdirAll("/tmp/some/path/to/dir", 0770)</lang>
=={{header|Python}}==
|