Gio.FileEnumerator.prototype.close_finish
function close_finish(result: Gio.AsyncResult): Boolean {
// Gjs wrapper for g_file_enumerator_close_finish()
}
Finishes closing a file enumerator, started from Gio.FileEnumerator.prototype.close_async.
If the file enumerator was already closed when Gio.FileEnumerator.prototype.close_async was called, then this function will report Gio.IOErrorEnum.closed in @error, and return false. If the file enumerator had pending operation when the close operation was started, then this function will report Gio.IOErrorEnum.pending, and return false. If @cancellable was not null, then the operation may have been cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gio.IOErrorEnum.cancelled will be set, and false will be returned.
- result
- Returns
true if the close operation has finished successfully.