# exist

Check if a file or directory exists.

```rhai
exist(path: &str) -> bool
```

## Examples

```rhai
if exist("/usr/local/bin/go") {
    print("Go is installed");
}
```

```rhai
if !exist("/tmp/data") {
    mkdir("/tmp/data")?;
}
```
