interface Deno.WriteFileOptions
Options for writing to a file.
Properties Jump to heading
optional
Jump to headingappend: boolean = falseIf set to true, will append to a file instead of overwriting previous
contents.
optional
Jump to headingcreate: boolean = trueSets the option to allow creating a new file, if one doesn't already exist at the specified path.
optional
Jump to headingcreateNew: boolean = falseIf set to true, no file, directory, or symlink is allowed to exist at
the target location. When createNew is set to true, create is ignored.
optional
Jump to headingmode: numberPermissions always applied to file.
optional
Jump to headingsignal: AbortSignalAn abort signal to allow cancellation of the file write operation.
If the signal becomes aborted the write file operation will be stopped
and the promise returned will be rejected with an AbortError.