or end of enumerator. Free the returned object with [gobject.object.ObjectWrap.unref] when no longer needed.
FileEnumerator.nextFile
gio.file_info.FileInfo nextFile(gio.cancellable.Cancellable cancellable = null)Returns information for the next file in the enumerated object. Will block until the information is available. The #GFileInfo returned from this function will contain attributes that match the attribute string that was passed when the #GFileEnumerator was created.
See the documentation of #GFileEnumerator for information about the order of returned files.
On error, returns null and sets error to the error. If the enumerator is at the end, null will be returned and error will be unset.
Parameters
cancellable | optional #GCancellable object, null to ignore. |
Returns
A #GFileInfo or null on error
Throws
[ErrorWrap]