Path.joinpath

Path joinpath(T...)(T args) if (args.length > 0) const @safe

Join this path with one or more path segments.

This is a variadic, pathlib-like convenience that appends each argument in order. If any later argument is an absolute path (or on Windows has a drive/UNC anchor), the accumulated path before it is discarded and the join restarts from that absolute argument, matching Python's Path.joinpath.

Parameters

argsOne or more path segments (string or Path).

Returns

A new Path representing the joined path.