next_file


Description:

public virtual FileInfo? next_file (Cancellable? cancellable = null) throws Error

Returns information for the next file in the enumerated object.

Will block until the information is available. The [class@Gio.FileInfo] returned from this function will contain attributes that match the attribute string that was passed when the file enumerator was created.

See the documentation of [class@Gio.FileEnumerator] for information about the order of returned files.

On error, returns `NULL` and sets throws to the error. If the enumerator is at the end, `NULL` will be returned and throws will be unset.

Parameters:

this

a file enumerator

cancellable

optional cancellable object

Returns:

A file info object, or `NULL` on error or end of enumerator