isPodAvailable method

Future<bool> isPodAvailable()

Checks if POD storage is available and user is logged in.

Implementation

Future<bool> isPodAvailable() async {
  try {
    // Import the isLoggedIn function to check POD login status.
    // This is better than trying to read a non-existent file.

    final loggedIn = await isLoggedIn();
    return loggedIn;
  } catch (e) {
    debugPrint('POD availability check failed: $e');
    return false;
  }
}