getTempSize static method
Implementation
static Future<int> getTempSize() async {
final String? tempWaterbusDir = await tempDirWaterbus;
if (tempWaterbusDir == null) return 0;
final Directory myDir = Directory(tempWaterbusDir);
if (!myDir.existsSync()) return 0;
return myDir.listSync().isEmpty ? 0 : ((myDir.statSync().size - 64) * 1024);
}