mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-03 14:17:20 +03:00
state.rs nit
This commit is contained in:
parent
b64bb80eb6
commit
e3c5b8ac1c
@ -404,8 +404,8 @@ async fn bootstrap(
|
|||||||
let our_drive_name = [package_name, package_publisher].join(":");
|
let our_drive_name = [package_name, package_publisher].join(":");
|
||||||
let pkg_path = format!("{}/vfs/{}/pkg", &home_directory_path, &our_drive_name);
|
let pkg_path = format!("{}/vfs/{}/pkg", &home_directory_path, &our_drive_name);
|
||||||
// delete anything currently residing in the pkg folder
|
// delete anything currently residing in the pkg folder
|
||||||
let pkg_path = std::path::PathBuf::from(pkg_path);
|
let pkg_path_buf = std::path::PathBuf::from(&pkg_path);
|
||||||
if pkg_path.exists() {
|
if pkg_path_buf.exists() {
|
||||||
fs::remove_dir_all(&pkg_path).await?;
|
fs::remove_dir_all(&pkg_path).await?;
|
||||||
}
|
}
|
||||||
fs::create_dir_all(&pkg_path)
|
fs::create_dir_all(&pkg_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user