File & System Activities
File System activities let you read, write, copy, move, delete, zip, and watch files and folders on the local disk or shared network paths. All path parameters accept absolute paths, relative paths, and environment variables (e.g., %USERPROFILE%, %APPDATA%).
Append To FileAppend To File
Append text to a file. Creates the file if it doesn't exist.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FilePath | String | Yes | — | The path of the file to append to |
Content | String | No | — | The text content to append to the file |
NewLine | Boolean | No | true | Add a newline after the appended text |
Encoding | String | No | UTF-8 | Text encoding (UTF-8, ASCII, UTF-16, Latin1) Allowed: UTF-8, ASCII, UTF-16, UTF-32, Latin1 |
CreateDirectory | Boolean | No | true | Create parent directory if it doesn't exist |
Copy FileCopy File
Copies a file from source to destination. Optionally overwrites existing files.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
SourcePath | String | Yes | — | The file to copy (select using file browser) |
DestinationPath | String | Yes | — | The folder where the file should be copied to |
Overwrite | Boolean | No | false | If true, overwrite the destination file if it already exists |
Create FolderCreate Folder
Creates a folder at the specified path, including any necessary parent directories.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FolderPath | String | Yes | — | The parent folder location where the new folder will be created |
FolderName | String | No | — | The name of the folder to create. If empty, the folder at FolderPath is created directly. |
Delete FileDelete File
Deletes a file or folder at the specified path.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Path | String | Yes | — | Full path of the file or folder to delete |
Recursive | Boolean | No | false | If deleting a folder, whether to delete all contents recursively |
File ExistsFile Exists
Checks whether a file or folder exists at the specified path. Stores true/false in the output variable.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Path | String | Yes | — | The full path of the file or folder to check |
OutputVariable | String | No | — | Variable name to store the result (true/false) |
Get File InfoGet File Info
Get file information such as size, creation date, extension, and attributes.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FilePath | String | Yes | — | The path of the file to get information about |
OutputVariable | String | No | fileInfo | Variable prefix for storing file info (creates {prefix}_FileName, {prefix}_FileSize, etc.) |
List FilesList Files
Lists files and/or folders in a directory. Supports search patterns and recursive search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FolderPath | String | Yes | — | The folder to list contents of |
SearchPattern | String | No | * | File search pattern (e.g., *.txt, *.csv, report_*.*) |
IncludeSubfolders | Boolean | No | false | Search recursively in subdirectories |
IncludeFiles | Boolean | No | true | Include files in the results |
IncludeFolders | Boolean | No | false | Include subdirectories in the results |
OutputVariable | String | No | — | Variable name to store the list of file paths (string array) |
Move FileMove File
Moves or renames a file from source to destination. Optionally overwrites existing files.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
SourcePath | String | Yes | — | The file to move (select using file browser) |
DestinationPath | String | Yes | — | The folder where the file should be moved to |
Overwrite | Boolean | No | false | If true, overwrite the destination file if it already exists |
Read Text FileRead Text File
Read the entire contents of a text file into a string variable.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FilePath | String | Yes | — | The path of the text file to read |
Encoding | String | No | UTF-8 | Text encoding (UTF-8, ASCII, UTF-16, Latin1) Allowed: UTF-8, ASCII, UTF-16, UTF-32, Latin1 |
OutputVariable | String | No | fileContent | Variable name to store the file content |
Unzip FilesUnzip Files
Extracts all files from a ZIP archive to a destination folder.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ZipPath | String | Yes | — | Path to the ZIP archive to extract |
DestinationPath | String | Yes | — | Folder where files will be extracted to |
Overwrite | Boolean | No | false | If true, overwrite existing files during extraction |
OutputVariable | String | No | — | Variable name to store the list of extracted file paths |
Watch FolderWatch Folder
Wait for a file to appear or change in a folder. Useful for monitoring downloads or file processing.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FolderPath | String | Yes | — | The folder to watch for file events |
Filter | String | No | *.* | File filter pattern (e.g., *.txt, *.csv, report*.xlsx) |
WatchType | String | No | Created | The type of file event to watch for Allowed: Created, Changed, Deleted, Renamed |
OutputVariable | String | No | watchedFile | Variable name to store the detected file path |
Write Text FileWrite Text File
Write text content to a file. Creates the file if it doesn't exist, overwrites if it does.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
FilePath | String | Yes | — | The path of the file to write to |
Content | String | No | — | The text content to write to the file |
Encoding | String | No | UTF-8 | Text encoding (UTF-8, ASCII, UTF-16, Latin1) Allowed: UTF-8, ASCII, UTF-16, UTF-32, Latin1 |
CreateDirectory | Boolean | No | true | Create parent directory if it doesn't exist |
Zip FilesZip Files
Compresses a file or folder into a ZIP archive.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
SourcePath | String | Yes | — | Paths of the files or folder to compress (select multiple files) |
ZipPath | String | Yes | — | Output folder for the ZIP archive |
CompressionLevel | String | No | Optimal | Compression level for the ZIP archive Allowed: Optimal, Fastest, SmallestSize, NoCompression |
Overwrite | Boolean | No | false | If true, overwrite the ZIP file if it already exists |
OutputFile | String | No | — | Variable to store the created ZIP file path |