/// Checks that all essential files exist. Note: amber_files, build_args, and fvm are optional.
Checks that all essential files exist. Note: amber_files, build_args, and fvm are optional.
Checks that all essential files exist . Note : amber_files build_args and fvm are optional .
pub fn check(&self) -> Result<()> {
        if let Some(a) = &self.amber_files {
            if !a.exists() {
                ffx_bail!("amber-files at {:?} does not exist", a);
            }
        }
        if let Some(b) = &self.build_args {
            if !b.exists() {
                ffx_bail!("build_args file at {:?} does not exist", b);
            }
        }
        if let Some(f) = &self.fvm {
            if !f.exists() {
                ffx_bail!("fvm file at {:?} does not exist", f);
            }
        }
        if !self.kernel.exists() {
            ffx_bail!("kernel file at {:?} does not exist", self.kernel);
        }
        if !self.zbi.exists() {
            ffx_bail!("zbi file at {:?} does not exist", self.zbi);
        }
        Ok(())
    }
pub fn check ( & self ) -> Result < ( ) > { if let Some ( a ) = & self . amber_files { if ! a . exists ( ) { ffx_bail ! ( " " a ) ; } } if let Some ( b ) = & self . build_args { if ! b . exists ( ) { ffx_bail ! ( " " b ) ; } } if let Some ( f ) = & self . fvm { if ! f . exists ( ) { ffx_bail ! ( " " f ) ; } } if ! self . kernel . exists ( ) { ffx_bail ! ( " " self kernel ) ; } if ! self . zbi . exists ( ) { ffx_bail ! ( " " self zbi ) ; } Ok ( ( ) ) }
Checks that all essential files exist.
Checks that all essential files exist .
&self