Search K
Appearance
Appearance
The File perations node performs a range of file and directory operations including reading, writing, copying, moving, deleting files, and listing files or directories.
Use this node to:
✅ Manage files and directories dynamically within workflows.
✅ Read or write text or binary files.
✅ Move, copy, rename, delete, or check existence of files.
✅ List files or directories based on patterns for batch processing.
| Field Label | Input Type | Description |
|---|---|---|
| File Path | Text | The path to the file or directory to perform operations on. Required for all operations. |
| Operation | Text | The operation to perform. Supported values are: Rename, Copy, Move, Delete, Exists, ReadText, WriteText, AppendText, ReadBytes, WriteBytes, ListFiles, ListDirectories, CreateDirectory, GetAttributes. |
| New Name (conditional) | Text | Required for Rename. The new file name. |
| Destination Path (conditional) | Text | Required for Copy and Move. The destination folder path. |
| Overwrite (conditional) | Boolean | Required for Copy, WriteText, and WriteBytes. Whether to overwrite existing files. |
| Content (conditional) | Text | Required for WriteText and AppendText. The content to write or append. |
| Bytes (conditional) | Byte[] | Required for WriteBytes. The byte array to write to the file. |
| Search Pattern (conditional) | Text | Required for ListFiles and ListDirectories. The search pattern to use. |
| Recursive (conditional) | Boolean | Required for ListFiles and ListDirectories. Whether to search recursively. |
| Output Variable | Description |
|---|---|
| Result | The result of the operation. The type varies based on operation: • Rename, Copy, Move, WriteText, WriteBytes, AppendText, CreateDirectory: returns the resulting file or directory path.• Delete: returns true.• Exists: returns true or false.• ReadText: returns file content as string.• ReadBytes: returns file content as byte array.• ListFiles, ListDirectories: returns a list of file or directory paths.• GetAttributes: returns file attributes as string. |
This node:
File and Directory methods for execution.Result output variable.taskParameters.data for cleanliness.✅ Rename a file after download for compliance with naming conventions.
✅ Copy files to a processing folder with overwrite control.
✅ Check if a configuration file exists before workflow execution.
✅ Read a file’s contents for parsing and data extraction.
✅ List all PDF files in a folder for batch processing.
WriteBytes, the input byte array must be of type byte[].