ZenFS
    Preparing search index...

    Function writeFile

    • Asynchronously writes data to a file, replacing the file if it already exists.

      The encoding option is ignored if data is a buffer.

      Parameters

      Returns void

      encoding Defaults to 'utf8'.

      mode Defaults to 0644.

      flag Defaults to 'w'.

    • Asynchronously writes data to a file, replacing the file if it already exists.

      The encoding option is ignored if data is a buffer.

      Parameters

      • this: V_Context
      • filename: PathLike
      • data: FileContents
      • Optionalencoding: BufferEncoding
      • Optionalcb: Callback

      Returns void

      encoding Defaults to 'utf8'.

      mode Defaults to 0644.

      flag Defaults to 'w'.

    • Asynchronously writes data to a file, replacing the file if it already exists.

      The encoding option is ignored if data is a buffer.

      Parameters

      • this: V_Context
      • filename: PathLike
      • data: FileContents
      • Optionaloptions: WriteFileOptions
      • Optionalcb: Callback

      Returns void

      encoding Defaults to 'utf8'.

      mode Defaults to 0644.

      flag Defaults to 'w'.