pub fn write_file(&self, file_path: &str, content: &str) -> Result<(), Error> {
        let full_path = PathBuf::from(&self.home_path).join(file_path);
        let full_path_str = format!("{}", full_path.display());
        fs::write(full_path, content)?;
        debug!("created new file {:?}", full_path_str);
        Ok(())
    }
/**
       Write the string content to a file path relative to the chain home
       directory.

       This is not efficient but is sufficient for testing purposes.
    */
Write the string content to a file path relative to the chain home
directory.

This is not efficient but is sufficient for testing purposes.
Write the string content to a file path relative to the chain home directory . This is not efficient but is sufficient for testing purposes .
pub fn write_file(&self, file_path: &str, content: &str) -> Result<(), Error> {
        let full_path = PathBuf::from(&self.home_path).join(file_path);
        let full_path_str = format!("{}", full_path.display());
        fs::write(full_path, content)?;
        debug!("created new file {:?}", full_path_str);
        Ok(())
    }
pub fn write_file ( & self , file_path : & str , content : & str ) -> Result < ( ) , Error > { let full_path = PathBuf :: from ( & self . home_path ) . join ( file_path ) ; let full_path_str = format ! ( " " full_path display ( ) ) ; fs :: write ( full_path , content ) ? ; debug ! ( " " full_path_str ) ; Ok ( ( ) ) }
Write the string content to a file path relative to the chain home
directory.
Write the string content to a file path relative to the chain home directory .
&self
file_path
&str
content
&str
&self
file_path
&str
content
&str