Blocks

File Operations

Advanced file system operations

Read, write, append, delete, and manage files with support for various formats including text, JSON, CSV, and binary files.

Back to Catalog
Toolsfile_operations

Block Preview

File Operations

Advanced file system operations

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the file_operations block with monitoring enabled in production.

Inputs (UI)

Operation

dropdown

Layout: half

Options: Read File, Write File, Append to File, Delete File

File Format

dropdown

Layout: half

Condition: operation = ["read","write","append"]

Options: Text, JSON, CSV, Binary

File Path

short-input

Placeholder: Enter file path

Layout: full

Condition: operation = ["read","write","append","delete","exists","metadata"]

Directory Path

short-input

Placeholder: Enter directory path

Layout: full

Condition: operation = ["list","mkdir"]

Content

long-input

Placeholder: Enter content to write to file

Layout: full

Condition: operation = ["write","append"] AND fileFormat = "text"

JSON Content

code

Placeholder: { "key": "value" }

Layout: full

Condition: operation = ["write","append"] AND fileFormat = "json"

CSV Content

long-input

Placeholder: column1,column2,column3 value1,value2,value3

Layout: full

Condition: operation = ["write","append"] AND fileFormat = "csv"

Encoding

dropdown

Layout: half

Condition: operation = ["read","write","append"] AND fileFormat = ["text","json","csv"]

Options: UTF-8, ASCII, Binary

Recursive

switch

Layout: half

Condition: operation = ["list","mkdir"]

Inputs (API)

operation

string

Required

fileFormat

string

Optional

filePath

string

Optional

directoryPath

string

Optional

content

string

Optional

jsonContent

json

Optional

csvContent

string

Optional

encoding

string

Optional

recursive

boolean

Optional

Outputs

Primary response type:

{
  "success": "boolean",
  "data": "any",
  "path": "string",
  "error": "string",
  "metadata": "json"
}

Tool Access

file_operations
File Operations | NowFlow Blocks