mirror of
https://github.com/birbwatcher/wayback-machine-downloader.git
synced 2026-04-23 14:33:51 +00:00
fix: windows path
This commit is contained in:
@@ -57,7 +57,7 @@ class AssetManager {
|
|||||||
if (fileId.length > 200) return null;
|
if (fileId.length > 200) return null;
|
||||||
|
|
||||||
const backup = this.backupPath;
|
const backup = this.backupPath;
|
||||||
const parts = fileId.split("/").filter(Boolean);
|
const parts = fileId.split("/").filter(Boolean).map((p) => this.windowsSanitize(p));
|
||||||
let dirPath;
|
let dirPath;
|
||||||
let filePath;
|
let filePath;
|
||||||
|
|
||||||
@@ -75,9 +75,6 @@ class AssetManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dirPath = this.windowsSanitize(dirPath);
|
|
||||||
filePath = this.windowsSanitize(filePath);
|
|
||||||
|
|
||||||
return { dirPath, filePath };
|
return { dirPath, filePath };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user