sandbox.files.
sandbox.files.read(path)
Read a file as a UTF-8 string. HTTP API →
Absolute path to the file
Promise<string>
sandbox.files.readBytes(path)
Read a file as raw bytes.
Absolute path to the file
Promise<Uint8Array>
sandbox.files.write(path, content)
Write content to a file. HTTP API →
Absolute path for the destination file
File content
Promise<void>
sandbox.files.list(path?)
List directory contents. HTTP API →
Directory path
Promise<EntryInfo[]>
sandbox.files.makeDir(path)
Create a directory (recursive). HTTP API →
Directory path
Promise<void>
sandbox.files.remove(path)
Delete a file or directory. HTTP API →
Path to remove
Promise<void>
sandbox.files.exists(path)
Check if a path exists. Client-side wrapper — attempts a read and returns false on error.
Path to check
Promise<boolean>
Types
EntryInfo
EntryInfo