mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
feat(scan): add '@Recycle' (QNAP) to ignored directories list
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
b60043aa12
commit
c65aaafdcd
@ -139,8 +139,6 @@ func (ic *IgnoreChecker) loadPatternsFromFolder(ctx context.Context, folder stri
|
|||||||
if len(patterns) == 0 {
|
if len(patterns) == 0 {
|
||||||
log.Trace(ctx, "Scanner: .ndignore file is empty, ignoring everything", "path", folder)
|
log.Trace(ctx, "Scanner: .ndignore file is empty, ignoring everything", "path", folder)
|
||||||
patterns = []string{"**/*"}
|
patterns = []string{"**/*"}
|
||||||
} else {
|
|
||||||
log.Trace(ctx, "Scanner: .ndignore file found", "path", ignoreFilePath, "patterns", patterns)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return patterns
|
return patterns
|
||||||
|
|||||||
@ -231,6 +231,7 @@ func isDirReadable(ctx context.Context, fsys fs.FS, dirPath string) bool {
|
|||||||
var ignoredDirs = []string{
|
var ignoredDirs = []string{
|
||||||
"$RECYCLE.BIN",
|
"$RECYCLE.BIN",
|
||||||
"#snapshot",
|
"#snapshot",
|
||||||
|
"@Recycle",
|
||||||
"@Recently-Snapshot",
|
"@Recently-Snapshot",
|
||||||
".streams",
|
".streams",
|
||||||
"lost+found",
|
"lost+found",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user