Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Best way to get the available disk space?

$
0
0

I'm still relatively new to .NET and iOS, so sorry if this is a dumb question :) I'm trying to determine how much free storage is available on the device, and the simplest way seems to be using DriveInfo.GetDrives()[2].AvailableFreeSpace. On my iPad 3, GetDrives() returns a total of 4 drives, and all but the 3rd have 0 space. Is the 3rd drive always going to be the system drive in iOS or is there a better way to determine free space?


Viewing all articles
Browse latest Browse all 204402


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>