|
spudplate
Template scaffolding compiler for spudlang .spud files
|
A mkdir statement - creates a directory.
More...
#include <ast.h>
Public Attributes | |
| PathExpr | path |
| Directory path expression. | |
| std::optional< std::string > | alias |
Optional as <name> binding; empty if no as clause. | |
| bool | mkdir_p |
| Always true - create intermediate directories. | |
| std::optional< PathExpr > | from_source |
| Optional source directory to populate from. | |
| bool | verbatim |
| If true with from_source, suppress interpolation. | |
| std::optional< int > | mode |
| Optional permission bits (e.g. 0755). | |
| std::optional< ExprPtr > | when_clause |
| Optional condition guarding creation. | |
| int | line |
| 1-based source line where this node begins. | |
| int | column |
| 1-based source column where this node begins. | |
A mkdir statement - creates a directory.
Example: mkdir src/modules mode 0755
With a from <source> clause, the directory is created and populated from the source directory atomically. Without from, an empty directory is made.