directory#
Variables#
const int |
Constructors#
Functions#
bool |
GetFilename(int index, char32[] buf) |
void |
Reload() |
void |
Free() deprecated |
void |
Own() |
Variable descriptions#
The number of files/folders contained in the directory.
Constructor descriptions#
directory directory(char32[] path) 🔗 Source
Added in version 3.0.
Function descriptions#
bool GetFilename(int index, char32[] buf) 🔗 Source
Changed in version 2.55.17: The buffer is now resized to fit if it is too small (it used to be truncated, with an error).
Loads the name of the index file (0 <= index < Size)
If the buffer is too small, it is resized to fit.
Refreshes the directory, updating Size and the results of GetFilename().
Deprecated: Free() no longer does anything as of ZC 3.0. Objects are now freed automatically.
Deallocate the directory pointer, so that the pointer ID may be re-used.
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.
Load a directory with
new directory(path)or FileSystem->LoadDirectory().