fix path handling for gallery preview

This commit is contained in:
Yoink3000
2024-04-19 02:05:39 +08:00
parent 1108c812dd
commit ab218fa9c8
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -169,6 +169,7 @@ def register_api(app: FastAPI): # register api
numFiles += 1
file = os.path.relpath(f, folder)
msg = quote(folder) + '##F##' + quote(file)
msg = msg[:1] + ":" + msg[4:] if msg[1:4] == "%3A" else msg
await manager.send(ws, msg)
await manager.send(ws, '#END#')
t1 = time.time()