FileEnumerator.getChild

Return a new GFile which refers to the file named by info in the source directory of enumerator. This function is primarily intended to be used inside loops with FileEnumerator.nextFile.

This is a convenience method that's equivalent to:

gchar *name = g_file_info_get_name (info);
GFile *child = g_file_get_child (g_file_enumerator_get_container (enumr),
name);
class FileEnumerator
getChild

Parameters

info FileInfo

a gio.FileInfo gotten from FileEnumerator.nextFile or the async equivalents.

Return Value

Type: FileIF

a GFile for the gio.FileInfo passed it.

Meta

Since

2.36