fileExists method

Future<bool> fileExists(
  1. String regionName
)

Check if a specific region's MWM file actually exists on disk.

This performs an async file existence check to verify the cached metadata matches reality. Useful after app reinstalls where SharedPreferences may persist but files are deleted.

Implementation

Future<bool> fileExists(String regionName) async {
  final metadata = getByRegion(regionName);
  if (metadata == null) return false;
  return File(metadata.filePath).exists();
}