DevFS prototype

This commit is contained in:
2024-09-03 13:48:53 +01:00
parent d3a43eab28
commit 423f622271
5 changed files with 135 additions and 58 deletions
+1 -6
View File
@@ -1313,16 +1313,11 @@ local function run_with_sandbox()
end
function drive_mounts.vfs.exists(path)
return drive_mounts.children[path] ~= nil
return path == "" or drive_mounts.children[path] ~= nil
end
function drive_mounts.vfs.isDir(path) return true end
function drive_mounts.vfs.getDrive(path) return "disks" end
function drive_mounts.vfs.getSize(path) return 0 end
function drive_mounts.vfs.getFreeSpace(path) return 0 end
function drive_mounts.vfs.makeDir(path) end
function drive_mounts.vfs.delete(path) end
function drive_mounts.vfs.isReadOnly(path) return true end
local vfstree = {
mount = "potatOS",