That's not a better way. It takes more CPU time, and you have to parse the result. But it does tell you the percent free, and not just the amount.
ahmedtheking
5:56 pm on Dec 26, 2006 (gmt 0)
Well disk_space_free is a bit funny on Mac. Because Mac puts hard drives under /Volumes, doing disk_space_free("/Volumes/harddrive1") didn't return anything!