mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +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
|
return true
|
||||||
}).filter(item => {
|
}).filter(item => {
|
||||||
// Filter out items in ignore directories
|
// 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}"`)
|
Logger.debug(`[fileUtils] Ignoring path in dir with .ignore "${item.fullname}"`)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user