pub fn install_default_config_file(path: &Path) -> Result<(), std::io::Error> {
    let source = include_str!("../../config/presets/tari_config_example.toml");
    if let Some(d) = path.parent() {
        fs::create_dir_all(d)?
    };
    let mut file = File::create(path)?;
    file.write_all(source.as_ref())
}
/// Installs a new configuration file template, copied from `tari_config_example.toml` to the given path.
Installs a new configuration file template, copied from `tari_config_example.toml` to the given path.
Installs a new configuration file template copied from ` tari_config_example . toml ` to the given path .
pub fn install_default_config_file(path: &Path) -> Result<(), std::io::Error> {
    let source = include_str!("../../config/presets/tari_config_example.toml");
    if let Some(d) = path.parent() {
        fs::create_dir_all(d)?
    };
    let mut file = File::create(path)?;
    file.write_all(source.as_ref())
}
pub fn install_default_config_file ( path : & Path ) -> Result < ( ) , std :: io :: Error > { let source = include_str ! ( " " ) ; if let Some ( d ) = path . parent ( ) { fs :: create_dir_all ( d ) ? } ; let mut file = File :: create ( path ) ? ; file . write_all ( source . as_ref ( ) ) }
Installs a new configuration file template, copied from `tari_config_example.toml` to the given path.
Installs a new configuration file template copied from ` tari_config_example . toml ` to the given path .
path
&Path
path
&Path