withoutExtension


Description:

public string withoutExtension ()

Returns the path without the file extension.

Example:

    var path = new Path ("/tmp/file.txt");
assert (path.withoutExtension () == "/tmp/file");
var noExt = new Path ("/tmp/Makefile");
assert (noExt.withoutExtension () == "/tmp/Makefile");

Returns:

the path string without extension.