@samitouri / QOSami-HFS / commits / c3a4f48c

deleting the last children of a vfs node left an unnecessary entry in config.yaml, children:[]

Massimo Melina committed Jan 15, 2026 at 16:41 UTC c3a4f48ccc88b6d1db82b7bbe0bd67033a0fa348
1 file changed +2
src/api.vfs.ts
+2
@@ -165,6 +165,8 @@ export default {
165 return HTTP_SERVER_ERROR
166 const idx = children.indexOf(node)
167 children.splice(idx, 1)
168 + if (!children.length)
169 + parentNode.children = undefined
170 return 0 // error code 0 is OK
171 })).finally(saveVfs)
172 }