fn export(path: &str) -> std::io::Result<()> {
  let base_path = preferences::prefs_base_dir().unwrap();
  let file_path = PathBuf::from("fidelius/keys.prefs.json");
  let keys_path = base_path.join(file_path.clone());
  fs::copy(keys_path, path)?;
  Ok(())
}
// Export config file to a target destination
Export config file to a target destination
Export config file to a target destination
fn export(path: &str) -> std::io::Result<()> {
  let base_path = preferences::prefs_base_dir().unwrap();
  let file_path = PathBuf::from("fidelius/keys.prefs.json");
  let keys_path = base_path.join(file_path.clone());
  fs::copy(keys_path, path)?;
  Ok(())
}
fn export ( path : & str ) -> std :: io :: Result < ( ) > { let base_path = preferences :: prefs_base_dir ( ) . unwrap ( ) ; let file_path = PathBuf :: from ( " " ) ; let keys_path = base_path . join ( file_path . clone ( ) ) ; fs :: copy ( keys_path , path ) ? ; Ok ( ( ) ) }
Export config file to a target destination
Export config file to a target destination
path
&str
path
&str