2017-04-23 11:03:43 +10:00
|
|
|
function flist(s)
|
|
|
|
local d,p = fres(s)
|
|
|
|
return d.list(p or "/")
|
|
|
|
end
|
|
|
|
function fmkdir(s)
|
|
|
|
local d,p = fres(s)
|
|
|
|
return d.makeDirectory(p or "/")
|
|
|
|
end
|
|
|
|
function frm(s)
|
|
|
|
local d,p = fres(s)
|
|
|
|
return d.remove(p)
|
|
|
|
end
|
2017-04-23 11:09:07 +10:00
|
|
|
function fexists(s)
|
|
|
|
local d,p = fres(s)
|
|
|
|
return d.exists(p)
|
|
|
|
end
|
2017-04-23 12:52:38 +10:00
|
|
|
function fisdir(s)
|
|
|
|
local d,p = fres(s)
|
|
|
|
return d.isDirectory(p)
|
|
|
|
end
|