mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-01-30 18:42:15 +00:00
Create .zcash directory if it doesn't exist
This commit is contained in:
parent
a4d7213dc8
commit
af0e0b9b2b
@ -121,7 +121,14 @@ impl LightClientConfig {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
zcash_data_location.into_boxed_path()
|
// Create directory if it doesn't exist
|
||||||
|
match std::fs::create_dir_all(zcash_data_location.clone()) {
|
||||||
|
Ok(_) => zcash_data_location.into_boxed_path(),
|
||||||
|
Err(e) => {
|
||||||
|
eprintln!("Couldn't create zcash directory!\n{}", e);
|
||||||
|
panic!("Couldn't create zcash directory!");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_wallet_path(&self) -> Box<Path> {
|
pub fn get_wallet_path(&self) -> Box<Path> {
|
||||||
|
Loading…
Reference in New Issue
Block a user