mirror of
https://github.com/navidrome/navidrome.git
synced 2025-07-19 18:01:46 +03:00
Compare commits
2 Commits
3853c3318f
...
d6083dab6e
Author | SHA1 | Date | |
---|---|---|---|
|
d6083dab6e | ||
|
6b3b4d83ff |
@ -42,12 +42,6 @@ func walkDirTree(ctx context.Context, fsys fs.FS, rootFolder string) (<-chan dir
|
|||||||
}
|
}
|
||||||
|
|
||||||
func walkFolder(ctx context.Context, fsys fs.FS, rootPath string, currentFolder string, results chan<- dirStats) error {
|
func walkFolder(ctx context.Context, fsys fs.FS, rootPath string, currentFolder string, results chan<- dirStats) error {
|
||||||
select {
|
|
||||||
case <-ctx.Done():
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
|
|
||||||
children, stats, err := loadDir(ctx, fsys, currentFolder)
|
children, stats, err := loadDir(ctx, fsys, currentFolder)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user