Path Folder
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
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
path | yes | expression | string | — |
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.
Topics: files, path handling
Source: patterns/ex-files-copy-into-created-folder.json