WritableFileConfig: [destination: string, content: string | Uint8Array, options?: Deno.WriteFileOptions]

the tuple description of a writable (or appendable) file.

  • the first entry of the array must describe the destination path of the file, relative to the directory defined in CreateFilesConfig.dir).
  • the second entry should be the file's contents, which can either be a string text, a ReadableStream, or a Uint8Array binary.
  • the third and optional entry lets you specify additional Deno.WriteFileOptions | deno specific file writing options, such as "append" the new text, or permit the creation ("create") of new file if it doesn't exist, etc...