when set to true
, the new text will be appended to the file, instead of overwriting the previous contents.
allow the creation of a new file if one does not already exist at the specified path.
when set to false
, and a file does not already exist at the specified path, then an error will be thrown,
causing the write operation promise to be rejected.
supply an optional unix r/w/x-permission mode to apply to the file.
setting file chmod-permissions on windows does nothing! (is that a limitation of deno? I don't know)
0o777
.Optional
signalprovide an optional abort signal to allow the 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
.
configuration options for the writeTextFile and writeFile function.