diff --git a/src/main/resources/assets/opencomputers/lua/rom/lib/filesystem.lua b/src/main/resources/assets/opencomputers/lua/rom/lib/filesystem.lua index b01472b7b..1eebc3196 100644 --- a/src/main/resources/assets/opencomputers/lua/rom/lib/filesystem.lua +++ b/src/main/resources/assets/opencomputers/lua/rom/lib/filesystem.lua @@ -299,11 +299,11 @@ end function filesystem.list(path) local node, rest, vnode, vrest = findNode(path) - if not vnode.fs and vrest and not node.fs then + if not vnode.fs and vrest and not (node and node.fs) then return nil, "no such file or directory" end local result, reason - if node.fs then + if node and node.fs then result, reason = node.fs.list(rest or "") end result = result or {}