Read and Write Files
Read and write text or bytes:List and Inspect Paths
Get rich metadata for files and directories:read() for different formats:
textbytesblobstream
Move, Copy, Upload, and Remove
Move data around inside the sandbox and transfer raw bytes:Watch a Directory
Watch a directory and receive relative file events:Presigned Upload and Download URLs
Generate one-time or expiring transfer URLs:Common File Methods
exists(path)getInfo(path)/get_info(path)list(path, { depth })read(path, { format, offset, length })readText(path)/read_text(path)readBytes(path)/read_bytes(path)write(path, data)writeText(path, data)/write_text(path, data)writeBytes(path, data)/write_bytes(path, data)makeDir(path)/make_dir(path)rename(oldPath, newPath)copy({ source, destination, recursive, overwrite })upload(path, data)download(path)chmod({ path, mode })chown({ path, uid, gid })remove(path, { recursive })watchDir(path, ...)/watch_dir(path, ...)uploadUrl(path, ...)/upload_url(path, ...)downloadUrl(path, ...)/download_url(path, ...)