legcompat

This commit is contained in:
bryanthaboi
2026-08-15 06:04:04 -04:00
parent 7804ef9793
commit 43cbc554c3
8 changed files with 1274 additions and 76 deletions
+9
View File
@@ -138,6 +138,15 @@ function FsIo.new(rootDir)
return loadfile(abs(path))
end
function fs.createDirectory(path)
os.execute(("mkdir -p %q"):format(abs(path)))
return true
end
function fs.remove(path)
return os.remove(abs(path)) ~= nil
end
function fs.getDirectoryItems(path)
return FsIo.listDir(abs(path))
end