filesSize method

Future<BinarySize?> filesSize()

Implementation

Future<BinarySize?> filesSize() async {
  await initialize();
  final files = await _backend.files();
  final total = files.fold<int>(0, (sum, file) => sum + file.sizeBytes);
  return BinarySize()..bytesCount = BigInt.from(total);
}