I'm coding a cross-platform installation app which checks free disk space before extracting files. It's all easy with Windows system as it tags each hard drive with a letter. But how should my app deal with several hard drivers in Mac OS? How are they tagged? How can it refer to a HD chosen by user?
So far my app uses the info from Terminal to calculate the free space, but this trick works so far only with the main hard drive. If user chooses, say, and external disk my app does wrong calculation.
So far my app uses the info from Terminal to calculate the free space, but this trick works so far only with the main hard drive. If user chooses, say, and external disk my app does wrong calculation.