FileSystem#

Contains functions related to accessing the filesystem.

Consider using new file() or new directory() instead.

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)

file

LoadFile(char32[] path, char32[] mode)

directory

LoadDirectory(char32[] path)

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.


file LoadFile(char32[] path, char32[] mode) 🔗 Source

param mode - See file for details.

Added in version 3.0.

Opens the file pointed to by ‘path’.

You can use new file(filepath, mode) (3.0) or file::OpenMode() instead.


directory LoadDirectory(char32[] path) 🔗 Source

Changed in version 3.0: You can use new directory(filepath) instead.

Opens the directory pointed to by ‘path’.