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 fullpathFull path of the object. "site::..." paths are also allowed.
RECORD optionsOptions
expectIf set to "folder", "file" or "any", throw if the object was not found or not of the expected type
Return value
OBJECTWHFS file or folder object (DEFAULT OBJECT if the object does not exist)