read_link


Description:

[ Version ( since = "2.4" ) ]
public string read_link (string filename) throws FileError

Reads the contents of the symbolic link filename like the POSIX readlink function.

The returned string is in the encoding used for filenames. Use to_utf8 to convert it to UTF-8.

Parameters:

filename

the symbolic link

Returns:

A newly-allocated string with the contents of the symbolic link, or null if an error occurred.


Namespace: GLib.FileUtils
Package: glib-2.0