homeDirectory(forUser:)
Returns the home directory for the specified user.
Declaration
func homeDirectory(forUser userName: String) -> URL?Parameters
- userName:
The username of the owner of the desired home directory.
Return Value
A URL object containing the location of the specified user’s home directory, or nil if no such user exists or the user’s home directory is not available.