get_child


Description:

[ Version ( since = "2.36" ) ]
public File get_child (FileInfo info)

Returns a new [iface@Gio.

File] which refers to the file named by info in the source directory of this.

This function is primarily intended to be used inside loops with [method@Gio.FileEnumerator.next_file].

To use this, [const@Gio.FILE_ATTRIBUTE_STANDARD_NAME] must have been listed in the attributes list used when creating the [ class@Gio.FileEnumerator].

This is a convenience method that's equivalent to: ```c char *name = g_file_info_get_name (info); GFile *child = g_file_get_child ( g_file_enumerator_get_container (enumerator), name); ```

Parameters:

this

a file enumerator

info

a file info object received from [method@Gio.FileEnumerator.next_file] or the async equivalent

Returns:

a file object for the file info object passed to it