SiteObject::OpenByPath (open)
Open a file or folder relative, with a path relative to the site root
Syntax
LOADLIB "mod::publisher/lib/siteapi.whlib";
OBJECT FUNCTION OpenByPath(STRING path, RECORD options)Parameters
STRING pathRelative path
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)