Instance Property

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

Related Symbols

var abbreviatingWithTildeInPath: String

A new string that replaces the current home directory portion of the current path with a tilde (~) character.