diff options
| -rw-r--r-- | backend/studip/fs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/studip/fs.go b/backend/studip/fs.go index 70b9dac..ad5643c 100644 --- a/backend/studip/fs.go +++ b/backend/studip/fs.go @@ -276,10 +276,11 @@ func (f *Fs) FillFolderNode( { errChan := make(chan error) - length := len(folderNode.Children) + length := 0 { for _, childrenNode := range folderNode.Children { if childrenNode.IsReadable { + length++ go func() { errChan <- f.FillFolderNode(ctx, childrenNode, joinPath(path, childrenNode.Name)) }() |
