From e11629a161fb72ba15117f158f5bcdc96bb9c16d Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 11 Sep 2022 16:22:07 -0500 Subject: [PATCH] Fix:.ignore files not working inside library item subdirs #979 --- server/utils/fileUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index 6915c287..58be41b0 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -136,7 +136,7 @@ async function recurseFiles(path, relPathToReplace = null) { return true }).filter(item => { // Filter out items in ignore directories - if (directoriesToIgnore.includes(Path.dirname(item.fullname))) { + if (directoriesToIgnore.some(dir => item.fullname.startsWith(dir))) { Logger.debug(`[fileUtils] Ignoring path in dir with .ignore "${item.fullname}"`) return false }