box.files namespace lets you upload, write, read, list, and download files inside the box.
Upload files
Push local files into the box. Each entry maps a local path to a destination inside the box workspace.Write files
Create or overwrite a file directly from a string. Useful when you want to inject configuration, scripts, or generated content without a local file.Read files
Read the contents of a file as a string.List files
List the entries in a directory. Each entry includes the path, size, type, and last modified timestamp.Download files
Pull files from the box back to your local machine. Call with no arguments to download the entire workspace, or pass apath to download a specific file or directory.