fix: windows path

This commit is contained in:
SiGMan
2026-02-19 20:17:48 -08:00
parent 660b534d3b
commit afd2fbb745

View File

@@ -57,7 +57,7 @@ class AssetManager {
if (fileId.length > 200) return null;
const backup = this.backupPath;
const parts = fileId.split("/").filter(Boolean);
const parts = fileId.split("/").filter(Boolean).map((p) => this.windowsSanitize(p));
let dirPath;
let filePath;
@@ -75,9 +75,6 @@ class AssetManager {
}
}
dirPath = this.windowsSanitize(dirPath);
filePath = this.windowsSanitize(filePath);
return { dirPath, filePath };
}