@samitouri / QOSami-HFS / commits / 9ad94acd

fix: admin/shared: saving a non-existing source reported the entry as not saved (but it is)

Massimo Melina committed Oct 5, 2025 at 22:39 UTC 9ad94acde99ae0580f309a5e531d63a6b5b7ceab
1 file changed +1 -1
src/vfs.ts
+1 -1
@@ -176,7 +176,7 @@ defineConfig('vfs', vfs).sub(reviewVfs)
176 async function reviewVfs(data=vfs) {
177 await (async function recur(node) {
178 if (node.source && !node.children?.length && node.isFolder === undefined) {
179 - const isFolder = /[\\/]$/.test(node.source) || (await nodeStats(node))?.isDirectory()
179 + const isFolder = /[\\/]$/.test(node.source) || (await nodeStats(node).catch(() => {}))?.isDirectory()
180 setHidden(node, { isFolder })
181 }
182 if (node.children)