Merge branch 'master' of github.com:XeonSquared/PsychOS

This commit is contained in:
Izaya 2017-08-01 14:42:36 +10:00
commit e94916e4ab

View File

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