![]() |
| ||||||
Navigation |
Synopsis Locations can be concatenated with strings to add segments to the path component
Syntax
Loc + Str
Types
Description Adds a segment to the path component of a location.
This concatenation introduces a path separator (
/ ) automatically.
Examples
rascal>|tmp:///myDir| + "myFile";
loc: |tmp:///myDir/myFile|
To get the original back, you can use the parent field:
rascal>(|tmp:///myDir| + "myFile").parent
loc: |tmp:///myDir|
![]() |