diff --git a/modules/lib/fs.lua b/modules/lib/fs.lua index 89c62f6..6877cd7 100644 --- a/modules/lib/fs.lua +++ b/modules/lib/fs.lua @@ -70,4 +70,24 @@ do end return false end + function fs.list(s) + local _,d,p = fs.resolve(s) + return fT[d].list(p or "/") + end + function fs.mkdir(s) + local _,d,p = fs.resolve(s) + return fT[d].makeDirectory(p or "/") + end + function fs.rm(s) + local d,p = fs.resolve(s) + return fT[d].remove(p) + end + function fs.exists(s) + local d,p = fs.resolve(s) + return fT[d].exists(p) + end + function fs.isdir(s) + local d,p = fs.resolve(s) + return fT[d].isDirectory(p) + end end