๐Ÿ‡ฌ๐Ÿ‡ง EN
๐Ÿ‡ฎ๐Ÿ‡น IT

๐Ÿ“ Local File

Reads, writes, or appends to files on the server's local filesystem. Use it to persist data between runs, process uploaded files, generate reports, or exchange data with other applications running on the same server.

Category: File Operations  ยท  Type identifier: local_file

Overview

The Local File node provides direct access to the filesystem of the server running Flusso. It supports three operations: reading the full contents of a file into the workflow context, writing (creating or overwriting) a file with new content, and appending content to an existing file without discarding what is already there.

Paths can be absolute (e.g. /var/data/output.txt) and support {{ variable }} references, making it straightforward to build dynamic filenames from trigger payloads or earlier step outputs. When the Create Directories toggle is on, any missing parent directories in the path are created automatically before writing.

Server access only. Files written here exist on the Flusso server, not on your local machine. Use Google Drive, Dropbox, or Amazon S3 if files must be accessible from other machines or shared with external users.

Configuration

FieldStatusDescription
Operation Required read โ€” read the full file contents into memory.
write โ€” create or completely overwrite the file.
append โ€” add content to the end of an existing file; creates the file if it does not exist.
Path Required Absolute file path, e.g. /var/data/output.txt. Supports {{ variable }} references for dynamic filenames.
Content Required for write/append The text or data to write. Supports {{ variable }} references.
Encoding Optional File encoding. Default: utf-8. Options: utf-8, base64.
Create Directories Optional Toggle. When on, creates missing parent directories automatically. Default: on.

Output Data

These fields are available in subsequent steps using the node's step key.

FieldTypeDescription
contentstringFile contents (read mode only).
pathstringAbsolute path of the file operated on.
sizenumberFile size in bytes after the operation.
successbooleanTrue if the operation completed without error.
{{ step_key.output.content }} {{ step_key.output.path }} {{ step_key.output.size }}

Example Usage

  1. A Loop node iterates over records from an earlier step.
  2. Inside the loop, a Local File node with Operation: append writes each processed result as a new line to /var/reports/daily.txt.
  3. After the loop exits, a second Local File node with Operation: read loads the completed file back into the workflow context.
  4. An Email Notification node attaches the file contents to the final report email.

Tips & Notes

Related Nodes