FileUtils.fileReadLink

Reads the contents of the symbolic link filename like the POSIX readlink() function. The returned string is in the encoding used for filenames. Use g_filename_to_utf8() to convert it to UTF-8.

struct FileUtils
static
string
fileReadLink
(
string filename
)

Parameters

filename string

the symbolic link

Return Value

Type: string

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

Throws

GException on failure.

Meta