mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix:.ignore files not working inside library item subdirs #979
This commit is contained in:
parent
ff2fb2b2ba
commit
e11629a161
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user