Home > Software design >  How can I calculate available disk space on Mac (especially with M1 processors) and Windows in Unity
How can I calculate available disk space on Mac (especially with M1 processors) and Windows in Unity

Time:11-23

My main issue is connected with M1 Macbooks but it will be good to find a better solution for all platforms. For now, I am using https://github.com/dkrprasetya/simple-disk-utils plugin but I am receiving the "Fallback handler could not load library" error on M1 Macbooks

I have tried to create a custom objective-c library with Xcode (to test for M1 processors) but no luck. Also, tried code from this article Checking for available disk space in Local Machine but it is not returning the correct size because there may be virtual Drives(at least on Mac)

CodePudding user response:

This might be what you are looking for:

Not sure if these would work with Unity’s Mono or IL2CPP

  • Related