Path Change Extension
Returns the full path string with its final extension replaced or added. If the last segment has no extension, the new extension is appended. The `extension` input may be written as `mp4` or `.mp4`; both forms are normalized. Only the final suffix is replaced, so `foo.prproj.zip` with `mov` becomes `foo.prproj.mov`.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
path | yes | expression | string | — |
extension | yes | expression | string | — |
Notes
- Pure read expression that replaces or adds the final extension of a path string.
- Accepts
extensionvalues with or without the leading dot. - Only the final suffix is replaced.