diff options
Diffstat (limited to 'cron-model.lua')
-rw-r--r-- | cron-model.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cron-model.lua b/cron-model.lua index 65d4393..40ec992 100644 --- a/cron-model.lua +++ b/cron-model.lua @@ -24,9 +24,11 @@ local function list_periods() end --[[ local reverseperiods = {} for i,per in ipairs(periods) do reverseperiods[per] = i end - for dir in posix.files(baseurl) do - if fs.is_dir(baseurl .. dir) and (dir ~= ".") and (dir ~= "..") and not reverseperiods[dir] then - periods[#periods+1] = dir + if fs.is_dir(baseurl) then + for dir in posix.files(baseurl) do + if fs.is_dir(baseurl .. dir) and (dir ~= ".") and (dir ~= "..") and not reverseperiods[dir] then + periods[#periods+1] = dir + end end end--]] end |