Make directory path: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (Added Arturo implementation) |
|||
Line 474: | Line 474: | ||
Note that attempting to run lfs.mkdir for a path that already exists writes no changes to disk and returns nil. |
Note that attempting to run lfs.mkdir for a path that already exists writes no changes to disk and returns nil. |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
Creates directory specified by path, creating intermediate directories as necessary, and never fails if path already exists. |
Creates directory specified by path, creating intermediate directories as necessary, and never fails if path already exists. |
||
<lang Mathematica>mkdirp[path_] := Quiet[CreateDirectory[path,{CreateIntermediateDirectories->True}],{CreateDirectory::filex}]</lang> |
<lang Mathematica>mkdirp[path_] := Quiet[CreateDirectory[path,{CreateIntermediateDirectories->True}],{CreateDirectory::filex}]</lang> |