Skip to main content

Path Folder

Category: Files Path Folder block screenshot

Returns the parent path of a filesystem-like path string. This works for both file-like and folder-like paths and can be used repeatedly to walk upward through ancestor folders. Trailing path separators are ignored before the parent is computed, except where preserving root semantics is necessary. Root paths return an empty string when there is no parent above them.

Inputs

InputRequiredValue KindTypesEnum Values
pathyesexpressionstring

Notes

  • Pure read expression that returns the parent path of a filesystem-like path string.
  • Works for both file-like and folder-like paths.
  • Can be used repeatedly to walk upward through ancestor folders.
  • Root paths return an empty string when there is no parent above them.

Examples

Copy File Into Created Folder

Builds a sibling destination folder and file path, creates the folder, then copies the file into it.

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

Topics: files, path handling

Source: patterns/ex-files-copy-into-created-folder.json

Download JSON