WHFSFolder::OpenByName (open)
Looks up a file or folder within this folder by name
Syntax
LOADLIB "mod::system/lib/internal/whfs/objects.whlib";
OBJECT FUNCTION OpenByName(STRING findname, RECORD options)
Parameters
STRING findname
Name of the file/folder
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 object of the file or folder when found, DEFAULT OBJECT when not found