Skip to main content

File nodes

Read and write files through Laravel's Storage (filesystem disks). Paths are relative to the disk's root and support {{ }}. If disk is blank, the app's default disk is used.


Read file

@wf::files:read · FilesReadNode

FieldTypeNotes
pathtextRequired.
diskselectOptional. One of the configured filesystem disks.

Fails if the file doesn't exist. Output: { "path": "...", "contents": "..." }


Write file

@wf::files:write · FilesWriteNode

FieldTypeDefaultNotes
pathtextRequired.
contentstext''Multiline. Supports {{ }}.
modeselectoverwriteoverwrite replaces the file; append adds to the end.
diskselectOptional.

Output: { "path": "...", "size": <bytes> }


Delete file

@wf::files:delete · FilesDeleteNode

FieldTypeNotes
pathtextRequired.
diskselectOptional.

Deleting a file that isn't there is not an error.

Output: { "path": "...", "deleted": true|false }