mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
fix: wrong state pointed to and ignore plugin/flavor directory creation errors
This commit is contained in:
parent
bfcf401b40
commit
7a99ea4409
4 changed files with 20 additions and 23 deletions
|
|
@ -157,8 +157,8 @@ impl Default for Boot {
|
|||
state_dir: Xdg::state_dir(),
|
||||
};
|
||||
|
||||
std::fs::create_dir_all(&boot.flavor_dir).expect("Failed to create flavor directory");
|
||||
std::fs::create_dir_all(&boot.plugin_dir).expect("Failed to create plugin directory");
|
||||
std::fs::create_dir_all(&boot.flavor_dir).ok();
|
||||
std::fs::create_dir_all(&boot.plugin_dir).ok();
|
||||
boot
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue