+ my $filepath = $file->filepath;
+ die "No keyfile '$filepath' exists -- use the \`add-key' command to create one.\n"
+ unless -e $filepath && !-d $filepath;
+ die "No secret in keyfile '$filepath' exists -- use the \`set-secret' command to set one.\n"
+ if !$file->secret;