@samitouri / QOSami-HFS-2 / commits / 3ff3b0f2
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

support masks of type */something

Massimo Melina committed Apr 19, 2023 at 16:38 UTC 3ff3b0f28232aa199343376507430a1284fd1a33
1 file changed +2
src/vfs.ts
+2
@@ -288,6 +288,8 @@ function inheritMasks(item: VfsNode, parent: VfsNode, virtualBasename:string) {
288 const withoutNeg = neg ? k.slice(1) : k
289 if (withoutNeg.startsWith('**'))
290 o[k] = v
291 + else if (withoutNeg.startsWith('*/'))
292 + o[neg + withoutNeg.slice(2)] = v
293 else if (withoutNeg.startsWith(virtualBasename + '/'))
294 o[neg + withoutNeg.slice(virtualBasename.length + 1)] = v
295 }