From 07a33104aa7bf94be72e03d6ee1262f8736d1e79 Mon Sep 17 00:00:00 2001 From: duncathan Date: Thu, 12 Sep 2019 01:26:06 -0600 Subject: [PATCH] swaps deprecated functions to recommended ones --- src/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.lua b/src/main.lua index df88eeb..8765060 100644 --- a/src/main.lua +++ b/src/main.lua @@ -37,10 +37,10 @@ local function recursiveWrite(path, name) lf.createDirectory(name) for i,v in ipairs(filesTable) do local file = path..'/'..v - if lf.isFile(file) then + if lf.getInfo(file, 'file') ~= nil then local n lf.write(name..'/'..v, lf.read(file)) - elseif lf.isDirectory(file) then + elseif lf.getInfo(file, 'directory') ~= nil then recursiveWrite(file, name..'/'..v) end end