get_child


Description:

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

Return a new 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 next_file.

To use this, g_file_attribute_standard_name must have been listed in the attributes list used when creating the FileEnumerator.

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);

Parameters:

this

a FileEnumerator

info

a FileInfo gotten from next_file or the async equivalents.

Returns:

a File for the FileInfo passed it.




2022 vala-language.org