Filesystem
Every sandbox has an isolated filesystem. Use sandbox.files when your application needs to exchange data with it without constructing shell commands.
The SDK can:
- read and write files;
- inspect files and directories;
- store custom file metadata;
- watch a directory for changes;
- upload local data;
- download sandbox data.
Paths are resolved inside the sandbox. Prefer absolute paths in application code so the result does not depend on a working directory.
The filesystem exists for the lifetime of the sandbox. Use pause and resume or snapshots when data must survive between runs.
See the Filesystem SDK reference for the complete JavaScript API. The Python reference contains the corresponding sync and async classes.