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
@override
Future<List<OrphanedFileInfo>> getOrphanedFiles() async {
await _ensureInitialized();
// Propagate real errors instead of returning an empty list: a failed scan
// must not read as "no orphans" (which hides reclaimable multi-GB files).
final protectedFiles = await _getProtectedFiles();
return ModelFileSystemManager.getOrphanedFiles(
protectedFiles: protectedFiles,
);
}