Retrieving Absolute URL from File on Mounted Volume in Cocoa

Posted by Bryan Kyle on Stack Overflow See other posts from Stack Overflow or by Bryan Kyle
Published on 2010-04-15T17:21:21Z Indexed on 2010/04/15 17:23 UTC
Read the original article Hit count: 431

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about url