* luci/libs/core: fix description of link() function in luci.fs
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 23 Jul 2008 13:35:12 +0000 (13:35 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 23 Jul 2008 13:35:12 +0000 (13:35 +0000)
libs/core/luasrc/fs.lua

index 0fc7193..84866b4 100644 (file)
@@ -192,14 +192,16 @@ stat = posix.stat
 -- @return             Number containing the os specific errno on error
 chmod = posix.chmod
 
 -- @return             Number containing the os specific errno on error
 chmod = posix.chmod
 
---- Create a hardlink from given file to specified target file path.
--- @class              function
--- @name               link
--- @param path1        String containing the source path of a file to hardlink
--- @param path2        String containing the destination path for the link
--- @return             Number with the return code, 0 on sucess or nil on error
--- @return             String containing the error description on error
--- @return             Number containing the os specific errno on error
+--- Create a hard- or symlink from given file (or directory) to specified target
+-- file (or directory) path.
+-- @class                      function
+-- @name                       link
+-- @param path1                String containing the source path to link
+-- @param path2                String containing the destination path for the link
+-- @param symlink      Boolean indicating wheather to create a symlink (optional)
+-- @return                     Number with the return code, 0 on sucess or nil on error
+-- @return                     String containing the error description on error
+-- @return                     Number containing the os specific errno on error
 link = posix.link
 
 --- Remove the given file.
 link = posix.link
 
 --- Remove the given file.