fn execute(&self) -> Result<Answer, Box<dyn Error>> {
        info!("creating file '{}'", self.path.to_str().unwrap());
        fs::write(self.path, &self.text)?;
        Ok(Answer::SUCCEED)
    }
/// Execute the command.
/// 
/// Todo: Add a feature checking whether the file already exists or not.
Execute the command.
Todo: Add a feature checking whether the file already exists or not.
Execute the command . Todo : Add a feature checking whether the file already exists or not .
fn execute(&self) -> Result<Answer, Box<dyn Error>> {
        info!("creating file '{}'", self.path.to_str().unwrap());
        fs::write(self.path, &self.text)?;
        Ok(Answer::SUCCEED)
    }
fn execute ( & self ) -> Result < Answer , Box < dyn Error > > { info ! ( " " self path to_str ( ) unwrap ( ) ) ; fs :: write ( self . path , & self . text ) ? ; Ok ( Answer :: SUCCEED ) }
Execute the command.
Execute the command .
&self