1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-18 17:27:39 +00:00
This commit is contained in:
kepler155c@gmail.com
2017-10-22 01:30:26 -04:00
parent 8e9ff9c626
commit 8d3f5329f2
2 changed files with 8 additions and 24 deletions

View File

@@ -316,28 +316,14 @@ local function getNodeByParts(parts)
end
function fs.unmount(path)
local parts = splitpath(path)
local targetName = table.remove(parts, #parts)
local node = getNodeByParts(parts)
if not node or not node.nodes[targetName] then
error('Invalid node')
end
node.nodes[targetName] = nil
--[[
-- remove the shadow directories
while #parts > 0 do
targetName = table.remove(parts, #parts)
node = getNodeByParts(parts)
if not Util.empty(node.nodes[targetName].nodes) then
break
end
if node and node.nodes[targetName] then
node.nodes[targetName] = nil
end
--]]
end
function fs.registerType(name, fs)