startsWith


Description:

public bool startsWith (string prefix)

Returns whether this path starts with the given prefix.

Example:

    var path = new Path ("/home/user/docs");
assert (path.startsWith ("/home") == true);

Parameters:

prefix

the prefix to check.

Returns:

true if the path starts with the prefix.