GetDiskResource (open)

Get an existing file from disk as a blob

Syntax

LOADLIB "wh::files.whlib";

BLOB FUNCTION GetDiskResource(STRING path, RECORD options)

Parameters

STRING path

Path to the file to open.

RECORD options

Options

BOOLEAN allowmissing

If set to TRUE, don't throw if the resource doesn't exist but return a DEFAULT BLOB

Return value

BLOB

A blob with the file. Throws if the file does not exist