Path.opBinary
Path opBinary(string op : "/")(string other) const @safeOperator overload for joining paths using the ~ operator.
Parameters
other | The path segment to join. |
Returns
A new Path representing the joined path.
Path opBinary(string op : "/")(Path other) const @safeOperator overload to join with another Path using `/`.
Example:
auto p = Path("/usr") / Path("bin"); // -> "/usr/bin"