Retrieving Absolute URL from File on Mounted Volume in Cocoa
- by Bryan Kyle
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,…