Fix:.ignore files not working inside library item subdirs #979

This commit is contained in:
advplyr 2022-09-11 16:22:07 -05:00
parent ff2fb2b2ba
commit e11629a161

View File

@ -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
}