endsWith


Description:

public bool endsWith (string suffix)

Returns whether this path ends with the given suffix.

Example:

    var path = new Path ("/tmp/file.txt");
assert (path.endsWith (".txt") == true);

Parameters:

suffix

the suffix to check.

Returns:

true if the path ends with the suffix.