# mkdir

Create a directory and all parent directories (defensive - doesn't error if exists).

```rhai
mkdir(path: &str) -> String
```

## Examples

```rhai
mkdir("/tmp/myapp/data")?;
```

```rhai
let dir = "/var/log/myapp";
mkdir(dir)?;
file_write(`${dir}/app.log`, "Started\n")?;
```
