OpenWHFSObjectByPath (open)
Returns a WHFS file or folder object from the whfs path of the object.
Syntax
LOADLIB "mod::system/lib/whfs.whlib";
OBJECT FUNCTION OpenWHFSObjectByPath(STRING fullpath, RECORD options)
Parameters
STRING fullpath
Full path of the object. "site::..." paths are also allowed.
RECORD options
Options
expect
If set to "folder", "file" or "any", throw if the object was not found or not of the expected type
Return value
OBJECT
WHFS file or folder object (DEFAULT OBJECT if the object does not exist)