diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-01-18 15:46:55 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-01-18 15:46:55 +0000 |
commit | 9ce48686e81f7ace3028a630c91795a8e76ea6a5 (patch) | |
tree | c43057f45ab0cd283b3fff780ed520184a06e625 /provisioning-model.lua | |
parent | 8a180f8a449ab86e1f7e22459e0512ee3ac613f1 (diff) | |
download | acf-provisioning-9ce48686e81f7ace3028a630c91795a8e76ea6a5.tar.bz2 acf-provisioning-9ce48686e81f7ace3028a630c91795a8e76ea6a5.tar.xz |
Bump version to 0.8.7v0.8.7
Diffstat (limited to 'provisioning-model.lua')
-rw-r--r-- | provisioning-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/provisioning-model.lua b/provisioning-model.lua index 34f8572..d24e1af 100644 --- a/provisioning-model.lua +++ b/provisioning-model.lua @@ -571,7 +571,7 @@ mymodule.list_templates = function() fs.create_directory(baseurl) for f in posix.files(baseurl) do local file = baseurl..f - local details = fs.stat(file) + local details = posix.stat(file) if details.type == "regular" then if not reversed[file] then retval[#retval+1] = {filename=file} @@ -621,7 +621,7 @@ mymodule.get_template = function(self, clientdata) end end local filedetails = modelfunctions.getfiledetails(retval.filename.value, function(filename) return validator.is_valid_filename(filename, baseurl) end) - for i,n in ipairs({"filecontent", "filesize", "mtime"}) do + for i,n in ipairs({"filecontent", "size", "mtime"}) do retval[n] = filedetails.value[n] end @@ -2012,7 +2012,7 @@ end function mymodule.list_files() local retval = {} for i,file in ipairs(scriptfiles) do - local details = fs.stat(file) or {} + local details = posix.stat(file) or {} details.filename = file table.insert(retval, details) end |