NSHomeDirectoryForUser(_:)
Returns the path to a given user’s home directory.
Declaration
func NSHomeDirectoryForUser(_ userName: String?) -> String?Parameters
- userName:
The name of a user.
Return Value
The path to the home directory for the user specified by userName.
Discussion
For more information on file system utilities, see Low-Level File Management Programming Topics.