diff options
Diffstat (limited to 'plugins/timer')
-rw-r--r-- | plugins/timer/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/timer/init.lua b/plugins/timer/init.lua index f0ddabbcf50..562f3c6a8b1 100644 --- a/plugins/timer/init.lua +++ b/plugins/timer/init.lua @@ -1,6 +1,6 @@ -- license:BSD-3-Clause -- copyright-holders:Carl -require('lfs') +local util = require('util') local sqlite3 = require('lsqlite3') local exports = {} exports.name = "timer" @@ -44,7 +44,7 @@ function timer.startplugin() save() end timer_started = true - lfs.mkdir(dir .. '/timer') + util.mkdir_recursive(dir .. '/timer') local db = assert(sqlite3.open(timer_db)) local found=false db:exec([[select * from sqlite_master where name='timer';]], function(...) found=true return 0 end) |