code: func ProfileFromDir(dirPath string, proxyName string) (*ClientProfile, error) {
  	profilePath := filepath.Join(dirPath, CurrentProfileSymlink)
  	if proxyName != "" {
  		profilePath = filepath.Join(dirPath, proxyName+".yaml")
  	}
  
  	return ProfileFromFile(profilePath)
  }
docs: // ProfileFromDir reads the user (yaml) profile from a given directory. The
  // default is to use the ~/<dir-path>/profile symlink unless another profile
  // is explicitly asked for. It works by looking for a "profile" symlink in
  // that directory pointing to the profile's YAML file first.