Function

Gio-2.0Giofile_new_tmp_dir_asyncSince 2.74

  • Asynchronously creates a directory in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_dir_make_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_dir_make_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>

    2.74

  • Asynchronously creates a directory in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_dir_make_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 creates a directory in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_dir_make_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>

    2.74