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 findnameName of the file/folder
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 object of the file or folder when found, DEFAULT OBJECT when not found