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 diskpath

Disk path / resource name

RECORD options

Options

allowdiskpath

If TRUE, return 'direct::...' path when no other resource name could be found. Otherwise return an empty string (default).

Return value

STRING

Resource path. Empty value if the path does not have a resource name