nextFile

open fun nextFile(cancellable: Cancellable? = null): <Error class: unknown class><FileInfo?>

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.

Return

A #GFileInfo or null on error or end of enumerator. Free the returned object with g_object_unref() when no longer needed.

Parameters

cancellable

optional #GCancellable object, null to ignore.