fileReadLink

fun fileReadLink(filename: String): <Error class: unknown class><String>

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.

Return

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

Since

2.4

Parameters

filename

the symbolic link