In a Carbon app I need to convert an HFS style MacOS path into a POSIX one that can be used in an fopen() call. For example:
my Vol:myFolder:myFile.jpg
to something like:
/my Vol/myFolder/myFile.jpg
If my Vol is my sytem disk, /myFolder/myFile.jpg works just fine, but if it’s on a different volume, it does not work (ie. my Vol/myFolder/myFile.jpg fails.
How to I specify the volume here?
Thanks!
Bill
An approach that avoids hard-coding (consider a volume not mounted in
/Volumes/, such as a manually mounted one.)