The absolute path of the file to write to.
The content to write (string, ArrayBuffer, TypedArray, Blob, or ReadableStream
Optionaloptions: WriteOptions
Optional write options.
Options for writing files, including flags for creation and appending.
Optionalappend?: booleanWhether to append to the file if it already exists.
Optionalcreate?: booleanWhether to create the file if it does not exist.
A promise that resolves to an AsyncVoidIOResult indicating success or failure.
Writes content to a file at the specified path. Creates the file and parent directories if they don't exist (unless
create: false).Overwriting inside a Worker is written to a temporary file in
/tmpfirst and moved into place on success, so an interrupted write leaves the previous content untouched. The main thread'screateWritablewrites a swap file instead and needs no temp file. Appending always writes in place.