Anonymous user
Make directory path: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
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.
<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}}==
|