0

I have used com.gluonhq.charm.down.plugins.StorageService to look for how much it would be possible to store with a application on windows, mac, iOS and Android seperate devices. I get a strange result on iOS (the rest is as you can expect with windows, mac and Android) - and need help to understand why that is.

According to the StorageSevice I have 5363227164672 (bytes) on my iPhone 6. How is that possible/why such strange result? That is 5365 GB!

File privateStorage = null;
    try {
        privateStorage = Services.get(StorageService.class).flatMap(StorageService::getPrivateStorage).orElseThrow(() -> new FileNotFoundException("Could not access prrivate storage"));
    } catch (FileNotFoundException ex) {
        Logger.getLogger(Go.class.getName()).log(Level.SEVERE, null, ex);
    }
// a simple print to javafx textArea method:
out("size is " + privateStorage.getFreeSpace());

Here is the documentation for StorageService.


Edit:

With .getUsableSpace() I get 179GB on iPhone6 which is not correct. Using .getUsableSpace() on windows gave the same result as before, (Android and Mac not rechecked with getUsableSpace().

Kerberos
  • 4,036
  • 3
  • 36
  • 55
lelelo
  • 173
  • 2
  • 12

0 Answers0