The Daytona SDK provides comprehensive file system operations through the fs module in workspaces. This guide covers all available file system operations and best practices.
Basic Operations
Daytona SDK provides an option to interact with the file system in workspaces. You can perform various operations like listing files, creating directories, reading and writing files, and more.
Listing Files and Directories
Python
TypeScript
Creating Directories
Python
TypeScript
File Operations
Daytona SDK provides options to read, write, upload, download, and delete files.
Python
TypeScript
Advanced Operations
File Permissions
Daytona SDK provides an option to set file permissions, get file permissions, and set directory permissions recursively.
Python
TypeScript
File Search and Replace
Daytona SDK provides an option to search for text in files and replace text in files.