FindFileByName (open)
Find a file by its name
Syntax
LOADLIB "mod::publisher/lib/publisher.whlib";
RECORD FUNCTION FindFileByName(INTEGER parentid, STRING filename)
Parameters
INTEGER parentid
ID of the folder to look in
STRING filename
Name (case-insensitive) of the file to look for
Return value
RECORD
The requested file record, or a non-existing record if the file does not exist
Description
Retrieve a file record from the FILES table, based on the ID of its parent folder and its name.