Contents

homeDirectory(forUser:)

Returns the home directory for the specified user.

Declaration

static func homeDirectory(forUser user: String) -> URL?

Parameters

  • user:

    The system user name for a given user.

Return Value

The home directory for the specified user.

See Also

Accessing home and user directories