I am creating an audio-recording application and I need to know how much disk space is available (not ram).
How can I retrieve it?
Thanks.
Best solution for me is to use the NSFileManager method:
- (NSDictionary *)attributesOfFileSystemForPath:(NSString *)path error:(NSError **)error
on the directory where you want to save your data. This is a wrapper around the statfs
system call, as is mentioned in the docs. But if you're already using NSFileManager, this would be the way to go.