GetNameFromPath (open)
Obtain the filename part from a path
Syntax
LOADLIB "wh::files.whlib";
STRING FUNCTION GetNameFromPath(STRING path)
Parameters
STRING path
Path to strip
Return value
STRING
The filename from the submitted path
Description
Strips the directory from a complete path, leaving its basename and extension 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.it"
PRINT(GetNameFromPath("/my/dir/b-lex.it");