how do i get the server of a mount

how do i get the server name and share name of a mount without using deprecated API like FSGetVolumeInfo and FSCopyURLForVolume


i need to translate UNC style strings to local file path like :
\\servername\share\path\file.dat

may translate to /Volumes/share2/path/file.dat


Shares may come from windows or mac file servers

MacOS should be supportet back to 10.12.

Replies

The droid you’re looking for is

NSURLVolumeURLForRemountingKey
.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"