resolve


Description:

public Path resolve (string other)

Resolves the given path against this path. If other is absolute, returns a new Path for other. Otherwise, joins this path with other.

Example:

    var base = new Path ("/home/user");
assert (base.resolve ("docs").toString () == "/home/user/docs");
assert (base.resolve ("/etc").toString () == "/etc");

Parameters:

other

the path to resolve.

Returns:

a new resolved Path.