pub async fn add_dir<S: Into<PathBuf>>(&self, sub_path: S) -> Result<()> {
        let mut p = PathBuf::from(&self.root);
        p.push(sub_path.into());
        Ok(DirBuilder::new()
            .recursive(true)
            .create(p.to_str().unwrap())
            .await?)
    }
///
/// Adds a directory to the environment
///
Adds a directory to the environment
Adds a directory to the environment
pub async fn add_dir<S: Into<PathBuf>>(&self, sub_path: S) -> Result<()> {
        let mut p = PathBuf::from(&self.root);
        p.push(sub_path.into());
        Ok(DirBuilder::new()
            .recursive(true)
            .create(p.to_str().unwrap())
            .await?)
    }
pub async fn add_dir < S : Into < PathBuf > > ( & self , sub_path : S ) -> Result < ( ) > { let mut p = PathBuf :: from ( & self . root ) ; p . push ( sub_path . into ( ) ) ; Ok ( DirBuilder :: new ( ) . recursive ( true ) . create ( p . to_str ( ) . unwrap ( ) ) . await ? ) }
Adds a directory to the environment
Adds a directory to the environment
&self
sub_path
S
&self
sub_path
S