how do you normalize paths pointing to members of an apfs volume group

NSStrings resolvingsymlinksinpath method should do the trick!

Given let path:String = "/System/Volumes/Data/Users/":

(lldb) po path
"/System/Volumes/Data/Users/"

(lldb) po (path as NSString).resolvingSymlinksInPath
"/Users"

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top