loadCache static method

Future<double> loadCache()

Implementation

static Future<double> loadCache() async {
  //获取文件夹
  Directory tempDirectory = await getTemporaryDirectory();

  double size = 0;
  if (tempDirectory.existsSync()) {
    size += await getTotalSizeOfFilesInDir(tempDirectory);
  }
  return size;
}