Fixed bug where unix paths would improperly parsed while importing unregistered files

This commit is contained in:
Tzahi12345
2020-09-07 16:06:25 -04:00
parent 46ed0fe992
commit 95e53b9549

View File

@@ -28,7 +28,7 @@ function getDownloadedFilesByType(basePath, type) {
var located_files = recFindByExt(basePath, ext);
for (let i = 0; i < located_files.length; i++) {
let file = located_files[i];
var file_path = file.substring(basePath.length+1, file.length);
var file_path = file.substring(basePath.includes('\\') ? basePath.length+1 : basePath.length, file.length);
var stats = fs.statSync(file);