mirror of
https://github.com/birbwatcher/wayback-machine-downloader.git
synced 2026-03-15 21:12:29 +00:00
Merge pull request #14 from sigman78/sigman/fix-windows-path
fix: windows path issue
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user