FileEnumerator.closeFinish
bool closeFinish(gio.async_result.AsyncResult result)Finishes closing a file enumerator, started from [gio.file_enumerator.FileEnumerator.closeAsync].
If the file enumerator was already closed when [gio.file_enumerator.FileEnumerator.closeAsync] was called, then this function will report [gio.types.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.types.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.types.IOErrorEnum.Cancelled] will be set, and false will be returned.
Parameters
result | a #GAsyncResult. |
Returns
true if the close operation has finished successfully.
Throws
[ErrorWrap]