OpenWHFSObject (open)
Returns a WHFS file or folder object from the id of the object. Returns DEFAULT OBJECT for id 0, use OpenWHFSRootObject to open the root folder object.
Syntax
LOADLIB "mod::system/lib/whfs.whlib";
OBJECT FUNCTION OpenWHFSObject(INTEGER findid, RECORD options)Parameters
INTEGER findidId of the object
RECORD optionsOptions
expectstateExpected object state ('live' will not open objects in the recyclebin)
Return value
OBJECTPossible objecttypes:
WHFS file or folder object (DEFAULT OBJECT if the object does not exist)