count property

int count

Implementation

int get count {
  int count = 0;
  for (final child in children.values) {
    if (child is File) {
      count += 1;
    } else if (child case VDir dir) {
      count += dir.count;
    }
  }
  return count;
}