fn validate_directory_as_unsigned_raw_pass(pass_path: &Path) -> io::Result<()> {
    let has_manifest_file = Path::new(pass_path).join("manifest.json").exists();
    let has_signature_file = Path::new(pass_path).join("signature").exists();

    if has_manifest_file || has_signature_file {
        eprintln!(
            "{:?} contains pass signing artificats that need to be removed before signing.",
            pass_path
        );
        return Err(io::ErrorKind::AlreadyExists.into());
    }

    Ok(())
}
/// Validate that requested contents are not a signed and expanded pass archive.
Validate that requested contents are not a signed and expanded pass archive.
Validate that requested contents are not a signed and expanded pass archive .
fn validate_directory_as_unsigned_raw_pass(pass_path: &Path) -> io::Result<()> {
    let has_manifest_file = Path::new(pass_path).join("manifest.json").exists();
    let has_signature_file = Path::new(pass_path).join("signature").exists();
    if has_manifest_file || has_signature_file {
        eprintln!(
            "{:?} contains pass signing artificats that need to be removed before signing.",
            pass_path
        );
        return Err(io::ErrorKind::AlreadyExists.into());
    }
    Ok(())
}
fn validate_directory_as_unsigned_raw_pass ( pass_path : & Path ) -> io :: Result < ( ) > { let has_manifest_file = Path :: new ( pass_path ) . join ( " " ) . exists ( ) ; let has_signature_file = Path :: new ( pass_path ) . join ( " " ) . exists ( ) ; if has_manifest_file || has_signature_file { eprintln ! ( " " pass_path ) ; return Err ( io :: ErrorKind :: AlreadyExists . into ( ) ) ; } Ok ( ( ) ) }
Validate that requested contents are not a signed and expanded pass archive.
Validate that requested contents are not a signed and expanded pass archive .
pass_path
&Path
pass_path
&Path