filesystem.CreateDirectory(path:string):boolean, stringCreate a directory under the game folder; returns success and the path.
File access and HTTP.
filesystem.CreateDirectory(path:string):boolean, stringCreate a directory under the game folder; returns success and the path.
filesystem.EnumerateDirectory(path:string, callback:function)Call callback(filename, attributes) for each matching entry; path may be a glob.
filesystem.GetFileTime(path:string):number, number, numberReturn creation, access and write times as Unix seconds.
filesystem.GetFileAttributes(path:string):numberReturn the file's attribute flags; -1 (INVALID_FILE_ATTRIBUTES) when the path is missing or outside the game folder.
filesystem.SetFileAttributes(path:string, attributes:number):booleanSet the file's attribute flags.
filesystem.ReadFile(path:string):string?Read a file's contents, or nil when missing or outside the game folder.
filesystem.WriteFile(path:string, content:string):booleanWrite text to a file inside the game folder.
http.Get(url:string):stringBlocking HTTP GET; returns the response body, or an empty string on failure.
http.GetAsync(url:string, callback:function)Non-blocking GET; callback(data) runs on a later frame.