X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcore%2Fluasrc%2Ffs.lua;fp=libs%2Fcore%2Fluasrc%2Ffs.lua;h=84866b431a0520229a131efbe13d52653fd402b4;hp=0fc7193890126ff5d839f5905ddd7e9212c89d2e;hb=ce5f619c4fb2d3089c28726d37122351f4141e50;hpb=7b60b141d872e1cae79325057771dc49a6085d81 diff --git a/libs/core/luasrc/fs.lua b/libs/core/luasrc/fs.lua index 0fc719389..84866b431 100644 --- a/libs/core/luasrc/fs.lua +++ b/libs/core/luasrc/fs.lua @@ -192,14 +192,16 @@ stat = posix.stat -- @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.