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
| Field | Type | Notes |
|---|---|---|
path | text | Required. |
disk | select | Optional. One of the configured filesystem disks. |
Fails if the file doesn't exist. Output: { "path": "...", "contents": "..." }
Write file
@wf::files:write · FilesWriteNode
| Field | Type | Default | Notes |
|---|---|---|---|
path | text | — | Required. |
contents | text | '' | Multiline. Supports {{ }}. |
mode | select | overwrite | overwrite replaces the file; append adds to the end. |
disk | select | — | Optional. |
Output: { "path": "...", "size": <bytes> }
Delete file
@wf::files:delete · FilesDeleteNode
| Field | Type | Notes |
|---|---|---|
path | text | Required. |
disk | select | Optional. |
Deleting a file that isn't there is not an error.
Output: { "path": "...", "deleted": true|false }