CreateDirectory Function

Creates a directory.

bool CreateDirectory(const char[] path, int mode, bool use_valve_fs, const char[] valve_path_id)

Parameters

const char[] path

Path to create.

int mode

Permissions (default is o=rx,g=rx,u=rwx). Note that folders must have the execute bit set on Linux. On Windows, the mode is ignored.

bool use_valve_fs

If true, the Valve file system will be used instead. This can be used to create folders in the game's Valve search paths, rather than directly in the gamedir.

const char[] valve_path_id

If use_valve_fs, a search path from gameinfo or NULL_STRING for default. In this case, mode is ignored.

Return Value

No description.