Function

Gio-2.0Giofile_new_tmp_asyncSince 2.74

  • Asynchronously opens a file in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_file_new_tmp().

    tmpl should be a string in the GLib file name encoding containing a sequence of six 'X' characters, and containing no directory components. If it is null, a default template is used.

    Parameters

    • tmpl: string

      Template for the file name, as in g_file_open_tmp(), or null for a default template

    • io_priority: number

      the I/O priority of the request

    • Optionalcancellable: Gio.Cancellable

      optional Gio.Cancellable object, null to ignore

    Returns Promise<[Gio.File, Gio.FileIOStream]>

    2.74

  • Asynchronously opens a file in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_file_new_tmp().

    tmpl should be a string in the GLib file name encoding containing a sequence of six 'X' characters, and containing no directory components. If it is null, a default template is used.

    Parameters

    Returns void

    2.74

  • Asynchronously opens a file in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_file_new_tmp().

    tmpl should be a string in the GLib file name encoding containing a sequence of six 'X' characters, and containing no directory components. If it is null, a default template is used.

    Parameters

    Returns void | Promise<[Gio.File, Gio.FileIOStream]>

    2.74