Documentation is being updated. Some sections may not reflect the latest features.
Looking for step-by-step guides? Explore Tutorials →

File Node

Perform file system operations within your workflows.

Overview

The File node lets you create, read, write, rename, and delete files. Select the operation mode from a dropdown at the top of the configuration panel.

Configuration

Field Description Required
Operation The file operation to perform Yes
File Path Path to the target file Yes
Output Variable Variable name to store the result Yes

Operations

Operation Description
Create Creates a new file
Read Reads the contents of an existing file (default)
Write Writes content to a file
Rename Renames an existing file
Delete Deletes a file

Example: Read a File

Read a configuration file and pass its contents to the next node:

File Path: /config/settings.json
Operation: Read
Output Variable: configData

Then access the contents in subsequent nodes with {{configData}}.

Example: Write Results to File

Save processed data to a file:

File Path: /output/report.json
Operation: Write
Content: {{processed_data}}
Output Variable: writeResult

Example: Create and Process

Create a temporary file, process it, then clean up:

File (Create) → Process Data → File (Write) → File (Delete temp)

Using Variables

Pass dynamic file paths from previous nodes:

{{upload_path}}
{{generated_filename}}

Best Practices

  • Use descriptive file paths for easy debugging
  • Handle potential errors for file operations that may fail (file not found, permissions)
  • Clean up temporary files when they're no longer needed
  • Use the Read operation default for most data retrieval scenarios
AI AssistantPowered by Ubex
Beta
Ask me anything about Ubex workflows, nodes, or the API.