async fn copy_raw(&mut self) -> anyhow::Result<()> {
        let valuer_cfg_dir = self.out_dir.join("assets/valuer-cfg");
        if let Some(valuer_cfg) = &self.cfg.valuer_cfg {
            self.tx.send_event(Update::CopyValuerConfig).await?;

            let src = self.problem_dir.join(valuer_cfg.trim_start_matches('/'));
            let dest = valuer_cfg_dir.join("cfg.yaml");
            tokio::fs::create_dir(&valuer_cfg_dir).await?;
            if src.is_file() {
                tokio::fs::copy(&src, &dest).await?;
            } else {
                // TODO
                anyhow::bail!("Multi-file valuer config is TODO");
            }
        }
        Ok(())
    }
/// Copies files that should just be copied as is.
/// Currently, only such file is valuer config
Copies files that should just be copied as is.
Currently, only such file is valuer config
Copies files that should just be copied as is . Currently only such file is valuer config
async fn copy_raw(&mut self) -> anyhow::Result<()> {
        let valuer_cfg_dir = self.out_dir.join("assets/valuer-cfg");
        if let Some(valuer_cfg) = &self.cfg.valuer_cfg {
            self.tx.send_event(Update::CopyValuerConfig).await?;
            let src = self.problem_dir.join(valuer_cfg.trim_start_matches('/'));
            let dest = valuer_cfg_dir.join("cfg.yaml");
            tokio::fs::create_dir(&valuer_cfg_dir).await?;
            if src.is_file() {
                tokio::fs::copy(&src, &dest).await?;
            } else {
                // TODO
                anyhow::bail!("Multi-file valuer config is TODO");
            }
        }
        Ok(())
    }
async fn copy_raw ( & mut self ) -> anyhow :: Result < ( ) > { let valuer_cfg_dir = self . out_dir . join ( " " ) ; if let Some ( valuer_cfg ) = & self . cfg . valuer_cfg { self . tx . send_event ( Update :: CopyValuerConfig ) . await ? ; let src = self . problem_dir . join ( valuer_cfg . trim_start_matches ( '/' ) ) ; let dest = valuer_cfg_dir . join ( " " ) ; tokio :: fs :: create_dir ( & valuer_cfg_dir ) . await ? ; if src . is_file ( ) { tokio :: fs :: copy ( & src , & dest ) . await ? ; } else { // TODO anyhow :: bail ! ( " " ) ; } } Ok ( ( ) ) }
Copies files that should just be copied as is.
Copies files that should just be copied as is .
&mut self