Path File Name Without Extension
Returns the last segment of a filesystem-like path string without its final extension. Only the final suffix is removed, so `foo.prproj.zip` becomes `foo.prproj`. Trailing path separators are ignored before the file name is read.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
path | yes | expression | string | — |
Notes
- Pure read expression that returns the last segment of a filesystem-like path string without its final extension.
- Removes only the final suffix, so
foo.prproj.zipbecomesfoo.prproj.
Examples
Rename File By Changing Extension
Builds a new leaf name from the original file name without extension, then renames the file inside its current parent folder.
Topics: files, path handling
Source: patterns/ex-files-rename-by-changing-extension.json