pub async fn write_fake_saf_file(saf: SafFile) -> anyhow::Result<(PathBuf, tempdir::TempDir)> {
    let bundle = SafBundle::from_saf_file(saf).await?;
    let tmp_dir = tempdir::TempDir::new("fake_saf")?;
    let mut path: PathBuf = tmp_dir.path().into();
    path.push("test-saf.saf");
    bundle.write_to_file(&path).await?;
    Ok((path, tmp_dir))
}
/// Save a Saf to a file and return the path and tempdir that contains it
Save a Saf to a file and return the path and tempdir that contains it
Save a Saf to a file and return the path and tempdir that contains it
pub async fn write_fake_saf_file(saf: SafFile) -> anyhow::Result<(PathBuf, tempdir::TempDir)> {
    let bundle = SafBundle::from_saf_file(saf).await?;
    let tmp_dir = tempdir::TempDir::new("fake_saf")?;
    let mut path: PathBuf = tmp_dir.path().into();
    path.push("test-saf.saf");
    bundle.write_to_file(&path).await?;
    Ok((path, tmp_dir))
}
pub async fn write_fake_saf_file ( saf : SafFile ) -> anyhow :: Result < ( PathBuf , tempdir :: TempDir ) > { let bundle = SafBundle :: from_saf_file ( saf ) . await ? ; let tmp_dir = tempdir :: TempDir :: new ( " " ) ? ; let mut path : PathBuf = tmp_dir . path ( ) . into ( ) ; path . push ( " " ) ; bundle . write_to_file ( & path ) . await ? ; Ok ( ( path , tmp_dir ) ) }
Save a Saf to a file and return the path and tempdir that contains it
Save a Saf to a file and return the path and tempdir that contains it
saf
SafFile
saf
SafFile