Posts

Post not yet marked as solved
1 Replies
1.1k Views
ScenarioSSD: 500GBUsed: 150GBPuregable 330GBAttempt to install: 50GB-> Mac lies and says not enough "available space".Let's say a user tries to install something and their drive is consumed by "purgeable" space. When querying disk drive space the normal way that you do for every operating system in the universe (except Mac apparently), you get the size available.Mac gives you purgeable space + used space as "available space". So if you write code that tries to tell the user if they're out of space before installing your product, it looks like the user doesn't have enough space to install. As a developer, how can I query just the purgeable space so that in the event their mac lies to me to tell me that they don't have enough space, I can help the user make an informed decision?For example, in this case a user has plenty of space. But their mac would tell them they are out of space. How can I say, "It looks like you are out of space, but your Mac has 330GBs of purgeable space. Would you like to install anyway?"Can I query the amount of purgeable space? If not can I query whether they have storage optimization turned on or not? At that point I could at least suggest that their mac might be lying to them and they may be able to install anyway.What relevent API flags/functions are there for devs around this - I can't seem to find any.
Posted
by jrsanders.
Last updated
.