A new string made from the receiver by resolving all symbolic links and standardizing path.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A new string made by resolving all symbolic links, then removing extraneous path components. For absolute paths, all symbolic links are guaranteed to be removed. For relative paths, symbolic links that can’t be resolved are left unresolved in the returned string.
self if an error occurs.
Note that this method only works with file paths (not, for example, string representations of URLs).