Skip to main content

Path Change Extension

Category: Files Path Change Extension block screenshot

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

InputRequiredValue KindTypesEnum Values
pathyesexpressionstring
extensionyesexpressionstring

Notes

  • Pure read expression that replaces or adds the final extension of a path string.
  • Accepts extension values with or without the leading dot.
  • Only the final suffix is replaced.