Make directory path: Difference between revisions
Content added Content deleted
(Added Wren) |
|||
Line 831: | Line 831: | ||
End Module</lang> |
End Module</lang> |
||
=={{header|Wren}}== |
|||
{{libheader|DOME}} |
|||
Curiously, this can only be done at present from a DOME program. A minimal script to do it would be: |
|||
<lang ecmascript>import "io" for FileSystem |
|||
class Main { |
|||
construct new() {} |
|||
init() { |
|||
FileSystem.createDirectory("path/to/dir") |
|||
} |
|||
update() {} |
|||
draw(alpha) {} |
|||
} |
|||
var Game = Main.new()</lang> |
|||
<br> |
|||
However, this functionality will be added to Wren-cli when version 0.4.0 is officially released. The code needed will be as follows: |
|||
<lang ecmascript>import "io" for Directory |
|||
Directory.create("path/to/dir")</lang> |
|||
=={{header|zkl}}== |
=={{header|zkl}}== |