Altova FlowForce Server 2025 Advanced Edition

Combines paths supplied as arguments into one path.

 

 

Signature

join-paths(string1:string, string2:string, stringN:string) -> string

 

 

Parameters

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.

 

 

Examples

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')

 

 

© 2018-2024 Altova GmbH