normalize


Description:

public Path normalize ()

Returns a normalized path by resolving "." and ".." segments.

Example:

    var path = new Path ("/home/user/../admin/./docs");
assert (path.normalize ().toString () == "/home/admin/docs");

Returns:

a new Path with the normalized path.