Filepath Join From Array
Joins an array of strings into a single, platform-specific filepath.
Joins the string elements together using the operating system's native path separator (/ for POSIX-like systems, \ for Windows). It also cleans the path by removing redundant separators.
| Platform | Input | Output |
|---|---|---|
| Windows-style | ["C:", "path", "to", "file.txt"] |
C:\path\to\file.txt |
| Windows-style | ["path", "to", "file.txt"] |
path\to\file.txt |
| POSIX-style | ["/", "path", "to", "file.txt"] |
/path/to/file.txt |
| POSIX-style | ["path", "to", "file.txt"] |
path/to/file.txt |
Inputs#
| Port | Description |
|---|---|
| An array of path segments to join. |
Outputs#
| Port | Description |
|---|---|
| The joined filepath. |
ID: core/filepath-join-array@v1