Skip to main content

File & Folder Operations

Open, save, copy, delete, rename files and folders; manage project resources

ActivityWhat it does
Check for FileChecks whether a file or directory exists. If it does, the output will be true; otherwise, it will be false.
Copy FileCopies a file from its current location to a new one.
Create DirectoryCreate a directory at the given path, including any missing parent directories (idempotent mkdir -p). By default, succee
Delete DirectoryRecursively delete a directory and all its contents. Missing paths are ignored by default (safe to call on a directory t
Delete FileDeletes a file from a specified location.
Delete ResourcePermanently deletes a resource from the project.
Download ResourceDownloads a resource file from the project to a local path.
Get Folder FilesReturns the full paths of all files located within a specified folder.
Get Resource InfoRetrieves detailed information about a specific resource.
List ResourcesLists all available resources in the project with optional filtering.
Open FileOpens a file using the system's default application for that file type.
Read File ContentReads the entire contents of a file and returns it as a string. Inverse of Save to File.
Rename FileChanges the name of a file.
Save ImageSave an image from a base64 string or data URL to a file. Use this for images captured from web pages or screenshots. If
Save to FileSave content to a file. Enable 'Create directories' to automatically create any missing parent directories in the path.
Update ResourceUpdates an existing resource.
Upload ResourceUploads a file as a resource to the project, making it available for use throughout the workflow.