Upload file
Upload multiple files
To upload multiple files in one call, pass a list of{ path, data } entries to files.write() in JavaScript or to files.write_files() in Python. See Upload data to sandbox. The following example shows the other approach, with one files.write() call per file.
Upload directory
We currently don’t support an easy way to upload a whole directory. You can read each file locally and pass the files in one call tofiles.write() in JavaScript or files.write_files() in Python. See Upload data to sandbox.
We’re working on a better solution.