path:Combine

Previous Next

Combines one or more folderpath expressions with path to form a new folderpath or filepath.

Syntax

path:Combine( folderpath [, .. ], path )

This function is guaranteed to combine expressions in such a way that the result has exactly 1 backslash character between each step in the folderpath and the next.

 

Example

This example assigns to a variable called "destdir" the (existing or virtual) \app subdirectory of the working directory.

<pc:assign-default workingdir="{directories:Get()}"/>
<pc:assign
  destdir="{path:Combine( $workingdir, 'app' )}"/>