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 }