# Enum `kurogane::capability::FsConfigError`

```rust
#[non_exhaustive]
pub enum FsConfigError {
    ForeignScope,
    OpaqueOrigin,
    Root { path: PathBuf, source: Error },
    DenyOutsideRoots { scope: String, path: PathBuf },
    InvalidGlob { scope: String, pattern: String, reason: &'static str },
}
```

A `Filesystem` configuration that cannot be built. These are
developer-facing and may name paths; they never reach a renderer.

## Variants

### `ForeignScope`

```rust
ForeignScope
```

A grant uses a [`ScopeId`](https://kurogane-rs.org/docs/api/capabilities/scopeid.md) declared on
another builder.

[crate::capability::ScopeId]: https://kurogane-rs.org/docs/api/capabilities/scopeid.md

### `OpaqueOrigin`

```rust
OpaqueOrigin
```

A grant targets the opaque origin, which would match every frame
without a host.

### `Root`

```rust
Root { path: PathBuf, source: Error }
```

An allow root cannot be opened as a directory.

### `DenyOutsideRoots`

```rust
DenyOutsideRoots { scope: String, path: PathBuf }
```

A `deny_path` lies outside every allow root of its scope.

### `InvalidGlob`

```rust
InvalidGlob { scope: String, pattern: String, reason: &'static str }
```

A `deny_glob` pattern is malformed.

## Trait implementations

- `impl Debug for FsConfigError`
- `impl Display for FsConfigError`
- `impl Error for FsConfigError`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/capability/error.rs#L107
