From: Steven Barth Date: Tue, 20 Jan 2009 10:19:22 +0000 (+0000) Subject: Merge r4103 X-Git-Tag: 0.8.5~51 X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=9d0a49fb4baf94599449af9a22ab6cec9f606f23;p=project%2Fluci.git Merge r4103 --- diff --git a/libs/core/luasrc/fs.lua b/libs/core/luasrc/fs.lua index 830536cbe..d4247d783 100644 --- a/libs/core/luasrc/fs.lua +++ b/libs/core/luasrc/fs.lua @@ -136,6 +136,15 @@ function mtime(path) return posix.stat(path, "mtime") end +--- Set the last modification time of given file path in Unix epoch format. +-- @param path String containing the path of the file or directory to read +-- @param mtime Last modification timestamp +-- @param atime Last accessed timestamp +-- @return 0 in case of success nil on error +-- @return String containing the error description (if any) +-- @return Number containing the os specific errno (if any) +utime = posix.utime + --- Return the last element - usually the filename - from the given path with -- the directory component stripped. -- @class function