Path Extension
Returns the final extension of a filesystem-like path string without the dot. Only the final suffix counts, so `foo.prproj.zip` returns `zip`. If the last segment has no extension, the block returns an empty string. Dotfiles such as `.gitignore` are treated as having no extension.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
path | yes | expression | string | — |
Notes
- Pure read expression that returns the final extension without the dot.
- Only the final suffix counts, so
foo.prproj.zipreturnszip. - If there is no extension, the result is an empty string.
- Dotfiles such as
.gitignoreare treated as having no extension.