Gio.FileInputStream.prototype.query_info_async

function query_info_async(attributes: String, io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_file_input_stream_query_info_async()
}
  

Queries the stream information asynchronously. When the operation is finished callback will be called. You can then call Gio.FileInputStream.prototype.query_info_finish to get the result of the operation.

For the synchronous version of this function, see Gio.FileInputStream.prototype.query_info.

If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gio.IOErrorEnum.cancelled will be set

attributes

a file attribute query string.

io_priority

the [I/O priority][io-priority] of the request

cancellable

optional Gio.Cancellable object, null to ignore.

callback

callback to call when the request is satisfied