parent


Description:

public Path parent ()

Returns a new Path representing the parent directory.

Example:

    var path = new Path ("/tmp/file.txt");
assert (path.parent ().toString () == "/tmp");

Returns:

a new Path for the parent directory.