Write a file
herdr_file_writeWrite a complete file locally or on another machine, create missing folders, and replace content atomically so readers never see partial writes.
Instructions
Write a whole file here or on another machine, making missing folders. Atomic: a reader sees old or new, never half.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Another machine (see herdr_machines); default: this one. | |
| cwd | No | Working directory. Default: the core's; on another machine, its home. | |
| path | Yes | Absolute, or from cwd. | |
| text | Yes | Its new content. |