Path.opBinary

Path opBinary(string op : "/")(string other) const @safe

Operator overload for joining paths using the ~ operator.

Parameters

otherThe path segment to join.

Returns

A new Path representing the joined path.
Path opBinary(string op : "/")(Path other) const @safe

Operator overload to join with another Path using `/`.

Example:

auto p = Path("/usr") / Path("bin"); // -> "/usr/bin"