Skip to main content

Path File Name Without Extension

Category: Files Path File Name Without Extension block screenshot

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

InputRequiredValue KindTypesEnum Values
pathyesexpressionstring

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.zip becomes foo.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.

kind: Pattern · format: runtime-dsl · validation: Schema only

Topics: files, path handling

Source: patterns/ex-files-rename-by-changing-extension.json

Download JSON