expandingTildeInPath
A new string made by expanding the initial component of the receiver to its full path value.
Declaration
var expandingTildeInPath: String { get }Discussion
A new string made by expanding the initial component of the receiver, if it begins with “~” or “~user”, to its full path value. Returns a new string matching the receiver if the receiver’s initial component can’t be expanded.
Note that this method only works with file paths (not, for example, string representations of URLs).
See Also
Working with Paths
path(withComponents:)pathComponentscompletePath(into:caseSensitive:matchesInto:filterTypes:)fileSystemRepresentationgetFileSystemRepresentation(_:maxLength:)isAbsolutePathlastPathComponentpathExtensionabbreviatingWithTildeInPathappendingPathComponent(_:)appendingPathExtension(_:)deletingLastPathComponentdeletingPathExtensionresolvingSymlinksInPathstandardizingPath