directory#

Variables#

const int

Size

Constructors#

directory

directory(char32[] path)

Functions#

bool

GetFilename(int index, char32[] buf)

void

Reload()

void

Free() deprecated

void

Own()

Variable descriptions#

const int Size 🔗 Source

The number of files/folders contained in the directory.


Constructor descriptions#

directory directory(char32[] path) 🔗 Source


Function descriptions#

bool GetFilename(int index, char32[] buf) 🔗 Source

Loads the name of the index file (0 <= index < Size)


void Reload() 🔗 Source

Refreshes the directory, updating Size and the results of GetFilename().


void Free() 🔗 Source

Deallocate the directory pointer, so that the pointer ID may be re-used.

Warning

Deprecated! Free() no longer does anything as of ZC 3.0. Objects are now freed automatically.


void Own() 🔗 Source

Grants ‘Ownership’ of the directory pointer to the script that calls this function. When the script with ‘Ownership’ terminates (at the same time its’ local arrays are deallocated), this directory pointer will automatically be ‘Free()’d.