summaryrefslogtreecommitdiffhomepage
path: root/libs/core/luasrc/fs.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-08-17 14:47:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-08-17 14:47:49 +0000
commit38ef0f92e75b90e405f4879c163e9bbfbbbe293f (patch)
treed4d64b7f97decbbdd19b48a566b116c5eeb981f9 /libs/core/luasrc/fs.lua
parentc0d904ac1680450a163420360b5911f156e6f3a9 (diff)
* luci/libs: add alias to posix.readlink() in luci.fs
Diffstat (limited to 'libs/core/luasrc/fs.lua')
-rw-r--r--libs/core/luasrc/fs.lua9
1 files changed, 9 insertions, 0 deletions
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