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 path
Relative path
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)