getStorageInfo method

Future<StorageStats> getStorageInfo()
override

Get storage statistics with orphaned file information

Implementation

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

  try {
    final protectedFiles = await _getProtectedFiles();
    return await ModelFileSystemManager.getStorageInfo(
      protectedFiles: protectedFiles,
    );
  } catch (e) {
    debugPrint('UnifiedModelManager: Failed to get storage info: $e');
    return const StorageStats(
      totalFiles: 0,
      totalSizeBytes: 0,
      orphanedFiles: [],
    );
  }
}