mirror of
https://github.com/navidrome/navidrome.git
synced 2025-07-20 10:21:46 +03:00
Compare commits
No commits in common. "d6083dab6eaf2988e770608162e9a41e1f91293c" and "3853c3318f67b41a9e4cb768618315ff77846fdb" have entirely different histories.
d6083dab6e
...
3853c3318f
@ -42,6 +42,12 @@ 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