mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
Third attempt to make a workaround for the Linux specific bug in the fs crate, to make it support backslashess in top_dir path
This commit is contained in:
@@ -189,7 +189,11 @@ pub fn initial_setup_wallet(
|
||||
) -> Result<GlobalWalletConfig, ConfigError> {
|
||||
if create_path {
|
||||
if let Some(p) = data_path.clone() {
|
||||
fs::create_dir_all(p)?;
|
||||
// Fix for a bug in the rust fs package to handle "\" in paths
|
||||
let p_fix = p.clone();
|
||||
let p_fix = p_fix.to_str().unwrap().to_owned().replace("\\", "/");
|
||||
let p_fix = PathBuf::from(p_fix);
|
||||
fs::create_dir_all(p_fix)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user