From 1adfcffe91e322e347478d3a855814e3573f66fd Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2015 14:03:58 +0000 Subject: Change listfiles filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions --- freeswitch-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'freeswitch-model.lua') diff --git a/freeswitch-model.lua b/freeswitch-model.lua index d4bf837..56b1f05 100644 --- a/freeswitch-model.lua +++ b/freeswitch-model.lua @@ -63,7 +63,7 @@ end mymodule.list_files = function() local retval = {} for file in fs.find(null, baseurl) do - local details = fs.stat(file) + local details = posix.stat(file) if details.type == "regular" then details.filename = file table.insert(retval, details) -- cgit v1.2.3