Skip to main content

Path Extension

Category: Files Path Extension block screenshot

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

InputRequiredValue KindTypesEnum Values
pathyesexpressionstring

Notes

  • Pure read expression that returns the final extension without the dot.
  • Only the final suffix counts, so foo.prproj.zip returns zip.
  • If there is no extension, the result is an empty string.
  • Dotfiles such as .gitignore are treated as having no extension.