Function writeFileAndDir

  • Writes to the given file path and always ensures that the path's parent directories are all created.

    Parameters

    • path: string
    • contents: string | ArrayBufferView<ArrayBufferLike>

    Returns Promise<void>