Method

GioFileget_uri

Declaration

char*
g_file_get_uri (
  GFile* file
)

Description

Gets the URI for the file.

This call does no blocking I/O.

Return value

Returns: char*
 

A string containing the GFiles URI. If the GFile was constructed with an invalid URI, an invalid URI is returned. The returned string should be freed with g_free() when no longer needed.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.