@samitouri / QOSami-HFS-2 / commits / ac8c4844
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.

fix: admin/fs: better handling of free text input on current-path

Massimo Melina committed Jul 26, 2022 at 11:44 UTC ac8c4844159e7c8ae75e44ab4b5c0398d9df4d11
1 file changed +1 -2
server/src/api.vfs.ts
+1 -2
@@ -134,8 +134,7 @@ const apis: ApiHandlers = {
134 return
135 }
136 try {
137 - if (isWindowsDrive(path))
138 - path = enforceFinal('/', path)
137 + path = isWindowsDrive(path) ? path + '\\' : resolve(path || '/')
138 for await (const name of dirStream(path)) {
139 if (ctx.req.aborted)
140 return