swaps deprecated functions to recommended ones

This commit is contained in:
duncathan 2019-09-12 01:26:06 -06:00
parent 71b340acd9
commit 07a33104aa

View file

@ -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