1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-21 11:35:44 -05:00

cleanup and sanity checks

This commit is contained in:
XeonSquared 2023-07-30 17:35:00 +10:00
parent 87f8bd2149
commit 7fa61e115e

View File

@ -116,12 +116,12 @@ function fs.address(path) -- string -- string -- Returns the address of the file
end
function fs.type(path) -- string -- string -- Returns the component type of the filesystem at a given path, if applicable
local fsi,_ = fs.resolve(path)
return fsmounts[fsi].type or "filesystem"
return fsmounts[fsi].fstype or fsmounts[fsi].type or "filesystem"
end
fsmounts["/"] = component.proxy(computer.tmpAddress())
fs.makeDirectory("temp")
if computer.getBootAddress then
if computer.getBootAddress and component.type(computer.getBootAddress()) == "filesystem" then
fs.makeDirectory("boot")
fs.mount("boot",component.proxy(computer.getBootAddress()))
end