internal/directory/directory_windows.go
Function calcSize
has 7 return statements (exceeds 4 allowed). Open
Open
func calcSize(ctx context.Context, dir string) (int64, error) {
var size int64
err := filepath.Walk(dir, func(d string, fileInfo os.FileInfo, err error) error {
if err != nil {
// if dir/x disappeared while walking, Size() ignores dir/x.