CreateDirectoryAsync

Last Updated2026-07-30
Created At2026-07-30

Creates a directory without blocking the game thread.

native void CreateDirectoryAsync(const char[] path, int mode, FileOpCallback callback, any data = 0, bool use_valve_fs = false, const char[] valve_path_id = "DEFAULT_WRITE_PATH")

Parameters

const char[] path
Path to create.
int mode
Permissions for an OS filesystem directory. Ignored by the Valve filesystem.
Callback invoked on completion.
any data
User data passed to the callback.
bool use_valve_fs
If true, use the Valve filesystem.
const char[] valve_path_id
Valve filesystem search path when use_valve_fs is true.

Return Value

void

Error

The callback is invalid, the async worker is shutting down, or Valve async operations are unavailable.