pub fn add_file<S: Into<PathBuf>>(&self, sub_path: S) -> Result<std::fs::File> {
        let mut p = PathBuf::from(&self.root);
        p.push(sub_path.into());
        Ok(std::fs::File::create(p.to_str().unwrap())?)
    }
///
/// Adds a file to the environment.
///
Adds a file to the environment.
Adds a file to the environment .
pub fn add_file<S: Into<PathBuf>>(&self, sub_path: S) -> Result<std::fs::File> {
        let mut p = PathBuf::from(&self.root);
        p.push(sub_path.into());
        Ok(std::fs::File::create(p.to_str().unwrap())?)
    }
pub fn add_file < S : Into < PathBuf > > ( & self , sub_path : S ) -> Result < std :: fs :: File > { let mut p = PathBuf :: from ( & self . root ) ; p . push ( sub_path . into ( ) ) ; Ok ( std :: fs :: File :: create ( p . to_str ( ) . unwrap ( ) ) ? ) }
Adds a file to the environment.
Adds a file to the environment .
&self
sub_path
S
&self
sub_path
S