From 38ef0f92e75b90e405f4879c163e9bbfbbbe293f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 Aug 2008 14:47:49 +0000 Subject: * luci/libs: add alias to posix.readlink() in luci.fs --- libs/core/luasrc/fs.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/core/luasrc/fs.lua b/libs/core/luasrc/fs.lua index 84866b431a..e089d55dd0 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 -- cgit v1.2.3