OpenDirectoryAsync

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

Enumerates an OS filesystem directory without blocking the game thread. The callback receives a fully-materialized DirectoryListing snapshot.

native void OpenDirectoryAsync(const char[] path, FileDirectoryCallback callback, any data = 0)

Parameters

const char[] path
Path to the directory. Use "." for the game directory.
Callback invoked on completion.
any data
User data passed to the callback.

Return Value

void

Error

The path is empty, the callback is invalid, or the async worker is shutting down.