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.
Block Preview
File Operations
Advanced file system operations
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the file_operations block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: half
Options: Read File, Write File, Append to File, Delete File
File Format
dropdownLayout: half
Condition: operation = ["read","write","append"]
Options: Text, JSON, CSV, Binary
File Path
short-inputPlaceholder: Enter file path
Layout: full
Condition: operation = ["read","write","append","delete","exists","metadata"]
Directory Path
short-inputPlaceholder: Enter directory path
Layout: full
Condition: operation = ["list","mkdir"]
Content
long-inputPlaceholder: Enter content to write to file
Layout: full
Condition: operation = ["write","append"] AND fileFormat = "text"
JSON Content
codePlaceholder: { "key": "value" }
Layout: full
Condition: operation = ["write","append"] AND fileFormat = "json"
CSV Content
long-inputPlaceholder: column1,column2,column3 value1,value2,value3
Layout: full
Condition: operation = ["write","append"] AND fileFormat = "csv"
Encoding
dropdownLayout: half
Condition: operation = ["read","write","append"] AND fileFormat = ["text","json","csv"]
Options: UTF-8, ASCII, Binary
Recursive
switchLayout: half
Condition: operation = ["list","mkdir"]
Inputs (API)
operation
stringRequired
fileFormat
stringOptional
filePath
stringOptional
directoryPath
stringOptional
content
stringOptional
jsonContent
jsonOptional
csvContent
stringOptional
encoding
stringOptional
recursive
booleanOptional
Outputs
Primary response type:
{
"success": "boolean",
"data": "any",
"path": "string",
"error": "string",
"metadata": "json"
}