basename


Description:

public string basename ()

Extract the base name (file name) from the file path.

Example:

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

Returns:

string of basename.