# dir_ensure

Create a directory and all parents if they don't exist.

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

## Examples

```rhai
dir_ensure("/var/log/myapp")?;
file_write("/var/log/myapp/app.log", "Started\n")?;
```

```rhai
dir_ensure("/opt/myapp/data/cache")?;
```
