Gio.File.prototype.query_info_finish

function query_info_finish(res: Gio.AsyncResult): Gio.FileInfo {
    // Gjs wrapper for g_file_query_info_finish()
}
  

Finishes an asynchronous file info query. See Gio.File.prototype.query_info_async.

res

a Gio.AsyncResult

Returns

Gio.FileInfo for given file or null on error. Free the returned object with GObject.Object.prototype.unref.