RetrieveWebHareResource (open)

Retrieve a WebHare resource, returning data, path and modification date

Syntax

LOADLIB "mod::system/lib/resources.whlib";

RECORD FUNCTION RetrieveWebHareResource(STRING resourcepath, RECORD options)

Parameters

STRING resourcepath

Resource path

RECORD options

Options

BOOLEAN allowmissing

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

Return value

RECORD

Record describing the WebHare resource. Throws a RetrieveResourceException when the resources doesn't exist (returns DEFAULT RECORD when allowmissing is set to TRUE)

BLOB data

The data

STRING path

Path of the requested resource