FileEnumerator.nextFile

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. 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.

class FileEnumerator
nextFile

Parameters

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

Return Value

Type: GFileInfo*

A GFileInfo or NULL on error or end of enumerator. Free the returned object with g_object_unref() when no longer needed. [transfer full]

Throws

GException on failure.

Meta