fn check_file_len(input: &mut File) -> crate::Result<()> {
    if input.metadata()?.len() <= (pwhash::SALTBYTES + secretstream::HEADERBYTES + SIGN.len()) as u64 {
        return Err(crate::Error::SnapshotError("Snapshot is not valid or encrypted".into()));
    }

    Ok(())
}
/// check to see if the file is long enough.
check to see if the file is long enough.
check to see if the file is long enough .
fn check_file_len(input: &mut File) -> crate::Result<()> {
    if input.metadata()?.len() <= (pwhash::SALTBYTES + secretstream::HEADERBYTES + SIGN.len()) as u64 {
        return Err(crate::Error::SnapshotError("Snapshot is not valid or encrypted".into()));
    }
    Ok(())
}
fn check_file_len ( input : & mut File ) -> crate :: Result < ( ) > { if input . metadata ( ) ? . len ( ) <= ( pwhash :: SALTBYTES + secretstream :: HEADERBYTES + SIGN . len ( ) ) as u64 { return Err ( crate :: Error :: SnapshotError ( " " . into ( ) ) ) ; } Ok ( ( ) ) }
check to see if the file is long enough.
check to see if the file is long enough .
input
&mut File