added file and folder perms

This commit is contained in:
2026-01-30 18:29:01 -05:00
parent d9caf655fb
commit cb73f49962
8 changed files with 135 additions and 67 deletions

View File

@@ -133,8 +133,8 @@ function fs.getcwd()
return syscall.getcwd()
end
function fs.setcwd(path)
return syscall.setcwd(path)
function fs.chdir(path)
return syscall.chdir(path)
end
function fs.isDir(path)

View File

@@ -46,18 +46,18 @@ for i,v in ipairs(files) do
end
end
local timeout=1
local timeout=false
while true do
local event = {syscall.IO_pullEvent()}
if event[1] then
for i,v in ipairs(eventQueues) do
syscall.IO_pushEvent(v, table.unpack(event))
end
timeout=10
timeout=false
else
timeout=timeout-1
timeout=true
end
if timeout<0 then
if timeout then
sleep(.05)
end
kernel.saveLog()