Getting free disk space?
Posted on 1998-04-27
I've been trying to figure out how to get my program to:
a) Figure out how much free disk space there is on the Startup volume
b) Figure out how much free disk space there is available on all of the computer's (writable) hard disks (maybe by looking at a list of the mounted volumes and getting the free space on each one, then adding it up)
I've spent altogether too much time searching Inside Macintosh, and I haven't gotten very far. I've found out about the "Drive Queue" (Inside Macintosh: Files / Chapter 2 - File Manager / Data Organization in Memory / The Drive Queue) and the "GetVInfo" function (Inside Macintosh: Files / Chapter 2 - File Manager / File Manager ReferenceHigh-Level Volume Access Routines / Obtaining Volume Information / GetVInfo), but neither of those seem to solve this problem.
If it makes a difference, I'm using CodeWarrior Pro 2 with PowerPlant.
Any help/tips/pointers would be very much appreciated!