Is there any way of retrieving an absolute URL for a file on a mounted volume in Cocoa? For example, say afp://server/Documents
is mounted at /Volumes/Documents
. How can I get full URL to a file on the mounted volume in the form of afp://server/Documents/path/to/file
?
I've tried using statfs
but the value of f_mntfromname
doesn't contain a url, it contains the same value that is given by the mount
command.