mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-17 22:31:59 +01:00
Fix:.ignore files not working inside library item subdirs #979
This commit is contained in:
1 parent
ff2fb2b2ba
commit
e11629a161
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user