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

    Returns Promise<void>