diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/core/luasrc/fs.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/core/luasrc/fs.lua b/libs/core/luasrc/fs.lua index 84866b431..e089d55dd 100644 --- a/libs/core/luasrc/fs.lua +++ b/libs/core/luasrc/fs.lua @@ -212,3 +212,12 @@ link = posix.link -- @return String containing the error description on error -- @return Number containing the os specific errno on error unlink = posix.unlink + +--- Retrieve target of given symlink. +-- @class function +-- @name readlink +-- @param path String containing the path of the symlink to read +-- @return String containing the link target or nil on error +-- @return String containing the error description on error +-- @return Number containing the os specific errno on error +readlink = posix.readlink |