Use Get Relative Path to make archive entries, deployment layouts, and customer folder structures portable from a chosen base folder. Calculation is lexical and does not access the filesystem.
Connectors
- Base Folder (text, required): the folder from which the result starts.
- Target Path (text, required): the destination file or folder path.
- Relative Path (text): the calculated path, or
.when both inputs identify the same location.
Example
Base C:\Clients\Acme\Work and target C:\Clients\Acme\Exports\invoice.pdf return ..\Exports\invoice.pdf.
Both inputs must be absolute under the same drive, UNC share, or POSIX root, or both must be relative. Different roots and absolute/relative mixtures fail instead of producing a misleading result. Symlinks and real filesystem casing are not resolved.
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | baseFolder — Base Folder | text | yes |
| Input | targetPath — Target Path | text | yes |
| Output | result — Relative Path | text | on success |
