From 46ed0fe992f5b3cf002fc12d20e1283417f2d76e Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Mon, 7 Sep 2020 00:39:27 -0400 Subject: [PATCH] Fixed bug in import unregistered logic where files in subfolders could not be found --- backend/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils.js b/backend/utils.js index efedb3b..f815c6c 100644 --- a/backend/utils.js +++ b/backend/utils.js @@ -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);