# ensure

Ensure a path exists. Returns error if it doesn't.

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

## Examples

```rhai
ensure("/etc/myapp/config.yaml")?;
print("Config file exists");
```

```rhai
ensure("/var/log/myapp")?;
```
