# `Wasmex.Wasi.PreopenOptions`

Options for preopening a directory.

Likely to be extended with read/write permissions once wasmtime supports them.

## Options

  * `:path` - The path to the directory to preopen
  * `:alias` - The alias to use for the directory. The directory will be
    available at this path in the WASI filesystem. If not specified, the
    directory will be available at its real path.

## Example

      iex> Wasmex.Store.new_wasi(%Wasmex.Wasi.WasiOptions{
      ...>   preopen: [
      ...>     %Wasmex.Wasi.PreopenOptions{path: "/tmp", alias: "temp"}
      ...>   ],
      ...> })

# `t`

```elixir
@type t() :: %Wasmex.Wasi.PreopenOptions{alias: String.t() | nil, path: String.t()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
