GetBasenameFromPath (open)
Obtain the basename part from a path
Syntax
LOADLIB "wh::files.whlib";
STRING FUNCTION GetBasenameFromPath(STRING path)
Parameters
STRING path
Path to strip
Return value
STRING
The filename from the submitted path
Description
Strips the directory and extension from a complete path, leaving only the filename. This is only done for the path submitted to the function. No checks on disk or in the WebHare database are performed. Initial dots are ignored for extension matching
Examples
//Returns "b-lex"
PRINT(GetBasenameFromPath("/my/dir/b-lex.it");