Compare commits

..

No commits in common. "d6083dab6eaf2988e770608162e9a41e1f91293c" and "3853c3318f67b41a9e4cb768618315ff77846fdb" have entirely different histories.

View File

@ -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