Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for totalChildrenRec (0.07 sec)

  1. cmd/data-usage-cache.go

    	}
    	flat := d.flatten(*root)
    	return &flat
    }
    
    // totalChildrenRec returns the total number of children recorded.
    func (d *dataUsageCache) totalChildrenRec(path string) int {
    	root := d.find(path)
    	if root == nil || len(root.Children) == 0 {
    		return 0
    	}
    	n := len(root.Children)
    	for ch := range root.Children {
    		n += d.totalChildrenRec(ch)
    	}
    	return n
    }
    
    // root returns the root of the cache.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.7K bytes
    - Viewed (0)
Back to top