FileSystem#

Contains functions related to accessing the filesystem.

All paths are made relative to a quest-specific directory, found at <zc root folder>/files/<quest name>. Quests cannot access files outside this folder.

Access with FileSystem->.

Functions#

bool

DirExists(char32 dirpath)

bool

FileExists(char32 filepath)

bool

Remove(char32 filepath)

directory

LoadDirectory(char32 dirpath)

Function descriptions#

bool DirExists(char32 dirpath) 🔗 Source

Returns true if the file/dir specified by the given path exists.


bool FileExists(char32 filepath) 🔗 Source

Returns true if the file/dir specified by the given path exists.


bool Remove(char32 filepath) 🔗 Source

Deletes the file pointed to by ‘filepath’. Path is relative to the quest’s specific directory.


directory LoadDirectory(char32 dirpath) 🔗 Source

Opens the directory pointed to by ‘dirpath’