Combines paths supplied as arguments into one path.
join-paths(string1:string, string2:string, stringN:string) -> string |
Name |
Type |
Description |
---|---|---|
string1 |
string |
Specifies a single path step to join. All subsequent arguments must be separated by a comma. |
string2 |
string |
Same as above. |
stringN |
string |
Same as above. |
On Windows, the following expressions return "C:\tmp\test.txt":
join-paths('C:\tmp', 'test.txt') join-paths('C:\tmp\', 'test.txt') join-paths('C:\', 'tmp', 'test.txt') join-paths('C:\Users', '\tmp', 'test.txt') join-paths('D:\Data', 'C:\tmp', 'test.txt') |
On Linux and MacOS, the following expressions return "/home/user/test.txt":
join-paths('/home/user', 'test.txt') join-paths('/var', '/home/user', 'test.txt') |