* luci/libs: add alias to posix.readlink() in luci.fs
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 17 Aug 2008 14:47:49 +0000 (14:47 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 17 Aug 2008 14:47:49 +0000 (14:47 +0000)
libs/core/luasrc/fs.lua

index 84866b431a0520229a131efbe13d52653fd402b4..e089d55dd04bfa1a508dd5b6cbfffdf0b6c2a1a6 100644 (file)
@@ -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