I'd like to find out where a network share is mounted when the mount command fails like this:
$ mkdir ~/share
$ mount_afp afp://server/share ~/share
mount_afp: the volume is already mounted
This looked promising...
$ mount
... snip ...
afp_000000004oMw0q76003DF78u-1.2d000006 on /Volumes/share-1 (afpfs, nodev, nosuid, mounted by username)
afp_000000004oMw0q76003DF78u-2.2d000007 on /Volumes/share-2 (afpfs, nodev, nosuid, mounted by username)
It seems like there should be a way to map those long afp_000...
numbers to URIs... Is there any way to determine where a volume is mounted given its afp:// URI?
I'm actually executing these commands with Python's subprocess module, so if there's a module or library that can do it that would be acceptable as well.