pub fn identity_path(
dir: &Path,
name: &str,
profile: Profile,
) -> Result<PathBuf, KeyFileError>Expand description
The file of the identity name in profile under dir:
<name>.<profile>.key. A name is 1 to 64 lowercase ASCII letters,
digits, - and _, starting with a letter or digit, so it names no other
directory and no other profile’s key; any other is refused
KeyFileError::IdentityName.