Sandboxes π
File system
A simple file system interface for managing files in sandboxes.
Manage files and directories within sandboxes through the fs
module of Blaxel SDK. This module provides essential operations for creating, reading, writing, copying, and deleting files and directories.
Complete code examples demonstrating all operations are available on Blaxelβs GitHub: in TypeScript and in Python.
Basic file system operations
Create directory
Create a new directory at a specific path in the sandbox:
List files
List files in a specific path:
Read file
Read a file from a specific filepath:
Write file
Create a file in a specific path:
Copy file
Copy a file from a path to another path:
Delete file or directory
Delete a file or directory by specifying its path: