getStorageInfo method

  1. @override
Future<StorageStats> getStorageInfo()
override

Get storage statistics with orphaned file information

Implementation

@override
Future<StorageStats> getStorageInfo() async {
  await _ensureInitialized();

  // Propagate real errors instead of laundering them into all-zero stats:
  // a scan failure must be distinguishable from "nothing installed" (0/0).
  final protectedFiles = await _getProtectedFiles();
  return ModelFileSystemManager.getStorageInfo(
    protectedFiles: protectedFiles,
  );
}