GetResourceNameFromDiskPath (open)
Returns the resource name for a disk path. Also accept webhare resource paths, which are normalized
Syntax
LOADLIB "mod::system/lib/resources.whlib";
STRING FUNCTION GetResourceNameFromDiskPath(STRING diskpath, RECORD options)Parameters
STRING diskpathDisk path / resource name
RECORD optionsOptions
allowdiskpathIf TRUE, return 'direct::...' path when no other resource name could be found. Otherwise return an empty string (default).
Return value
STRINGResource path. Empty value if the path does not have a resource name