I would like to know where the network resource is mounted when the mount command fails as follows:
$ mkdir ~/share
$ mount_afp afp:
mount_afp: the volume is already mounted
It 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)
There seems to be a way to map these long afp_000...numbers to URIs ... Is there a way to determine where the volume is mounted, given its URL: // URI?
I actually execute these commands using the Python subprocess module, so if there is a module or library that can do this, this will also be acceptable.
source
share