internal/common/analyze.go
package common
import "github.com/dundee/gdu/v5/pkg/fs"
// CurrentProgress struct
type CurrentProgress struct {
CurrentItemName string
ItemCount int
TotalSize int64
}
// ShouldDirBeIgnored whether path should be ignored
type ShouldDirBeIgnored func(name, path string) bool
// Analyzer is type for dir analyzing function
type Analyzer interface {
AnalyzeDir(path string, ignore ShouldDirBeIgnored, constGC bool) fs.Item
SetFollowSymlinks(bool)
GetProgressChan() chan CurrentProgress
GetDone() SignalGroup
ResetProgress()
}