ReadWebHareResourceFolder (open)

Returns the contents of a resource folder.

Syntax

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

RECORD ARRAY FUNCTION ReadWebHareResourceFolder(STRING resourcepath)

Parameters

STRING resourcepath

Path to the resource folder

Return value

RECORD ARRAY

List of resources and folders within a resource folder

INTEGER id

Database id of the resource (folder), if applicable.

BOOLEAN isfolder

Whether this entry is a folder

DATETIME modified

Modificationdate of a resource

STRING name

Name of the resource (folder)

STRING resourcepath

Full path to the resource (folder). Ends with '/' for folders.