diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:06:15 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:06:15 +0000 |
commit | e8b11b2050444485ba7e24fa67ad5bdf179dab44 (patch) | |
tree | ae3914aace83eca98de5ed2ce52cf2f15c363c1c /postfix-model.lua | |
parent | d6ca5b5706b39bc73c0d42449ac32ccc98136263 (diff) | |
download | acf-postfix-e8b11b2050444485ba7e24fa67ad5bdf179dab44.tar.bz2 acf-postfix-e8b11b2050444485ba7e24fa67ad5bdf179dab44.tar.xz |
Change listfiles filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions
Diffstat (limited to 'postfix-model.lua')
-rw-r--r-- | postfix-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix-model.lua b/postfix-model.lua index 8708263..280e415 100644 --- a/postfix-model.lua +++ b/postfix-model.lua @@ -66,7 +66,7 @@ function mymodule.getfilelist() local listed_files = {} for i,name in ipairs(geteditablefilelist()) do - local filedetails = fs.stat(name) + local filedetails = posix.stat(name) if filedetails then filedetails.filename = name table.insert ( listed_files, filedetails ) @@ -75,7 +75,7 @@ function mymodule.getfilelist() table.sort(listed_files, function (a,b) return (a.filename < b.filename) end ) - return cfe({ type="list", value=listed_files, label="Postfix File List" }) + return cfe({ type="structure", value=listed_files, label="Postfix File List" }) end function mymodule.getfiledetails(filename) |