getOrphanedFiles method
Get information about orphaned files
Returns list of files that don't have active downloads. These files can be safely deleted using cleanupStorage().
Implementation
Future<List<OrphanedFileInfo>> getOrphanedFiles() async {
await _ensureInitialized();
try {
final protectedFiles = await _getProtectedFiles();
return await ModelFileSystemManager.getOrphanedFiles(
protectedFiles: protectedFiles,
);
} catch (e) {
debugPrint('UnifiedModelManager: Failed to get orphaned files: $e');
return [];
}
}