@DTS Engineer
We're running into the same issue in a Blazor Maui app on iOS and it's a preventing us from publishing.
iOS reports 116GB available space in General > About and General > iPad Storage, yet the API call returns less than 10GB available:
public long GetFreeSpace(string path) {
NSError error;
var fsa = NSFileManager.DefaultManager.GetFileSystemAttributes(path, out error);
if(fsa == null) {
logger.Error(LogMessage.Create($"Failed to get free space. Will assume there is space. Path: {path} - FSA is null due to error {(error == null ? "null" : error.Description)}"));
return long.MaxValue;
}
return (long)fsa.FreeSize;
}
Topic:
App & System Services
SubTopic:
Core OS
Tags: