Method

GioFileget_path

Declaration

char*
g_file_get_path (
  GFile* file
)

Description

Gets the local pathname for GFile, if one exists. If non-NULL, this is guaranteed to be an absolute, canonical path. It might contain symlinks.

This call does no blocking I/O.

Return value

Returns: char*
 

String containing the GFiles path, or NULL if no such path exists. 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 return value can be NULL.
 The value is a file system path, using the OS encoding.