# `Opsmaru.Incus.SFTP.Path`
[🔗](https://github.com/upmaru/opsmaru-incus/blob/v0.1.0/lib/opsmaru/incus/sftp/path.ex#L1)

Go `path` semantics used by the pinned `pkg/sftp` client: `join/1`, `split/1`,
`clean/1` and `match/2`. Paths are byte strings with `/` separators; nothing here
touches a filesystem.

# `clean`

Go `path.Clean`: the shortest equivalent path by purely lexical processing.

# `join`

Go `path.Join`: joins non-empty elements with `/` and cleans the result.

# `match`

Go `path.Match`: whether `name` matches the shell `pattern`. Returns
`{:ok, boolean}` or `{:error, :bad_pattern}` exactly where Go returns
`path.ErrBadPattern`.

# `split`

Go `path.Split`: splits after the final `/` into `{dir, file}`.

---

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