Fixed bug in import unregistered logic where files in subfolders could not be found

This commit is contained in:
Tzahi12345
2020-09-07 00:39:27 -04:00
parent 082252ab1e
commit 46ed0fe992

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 = path.basename(file);
var file_path = file.substring(basePath.length+1, file.length);
var stats = fs.statSync(file);