Make directory path: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 12: Line 12:
It's likely that your language implements such a function as part of its standard library. If so, please also show how such a function would be implemented.
It's likely that your language implements such a function as part of its standard library. If so, please also show how such a function would be implemented.
<br><br>
<br><br>

=={{header|Aime}}==
<lang aime>void
mkdirp(text path)
{
list l;
text p, s;

file().b_affix(path).news(l, 0, 0, "/");

for (, s in l) {
p = p + s + "/";
trap_q(mkdir, p, 00755);
}
}

integer
main(void)
{
mkdirp("./path/to/dir");

0;
}</lang>


=={{header|AppleScript}}==
=={{header|AppleScript}}==