Working with Paths
Normally, it's a fairly simple to convert a mac path to a unix path.
Replace Mac colon delimiters with slashes and slashes with colons.
If not a boot volume path, prepend with '/Volumes/'... '/Volumes/NonBootDisk/some folder
Else, delete the volume name from the path leaving a leading '/'.
... '/some folder'
Trouble arises if a volume is mounted that has the same file system name as a currently mounted volume.
Such volumes will include a trailing hypen and digit... 'Zip_100 Zip_100-1, Zip_100-2', and may persist across remounts (though it really shouldn't).
Getting Unix Volume Names
Unix to Mac Volume Name
Path Conversions
Directory & File Lists
Comments (0)
You don't have permission to comment on this page.