Method

GioFileget_child

Declaration [src]

GFile*
g_file_get_child (
  GFile* file,
  const char* name
)

Description [src]

Gets a child of file with basename equal to name.

Note that the file with that specific name might not exist, but you can still have a GFile that points to it. You can use this for instance to create that file.

This call does no blocking I/O.

Parameters

name

Type: const char*

String containing the child’s basename.

The data is owned by the caller of the method.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.

Return value

Type: GFile

A GFile to a child specified by name. Free the returned object with g_object_unref().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.