Skip to content

Commit

Permalink
fix: Exits when top level directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Jul 1, 2024
1 parent 0b84666 commit 66cd401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Executor {
let base_path = PathBuf::from(DEFAULT_CONFIG_BASEPATH);

if let Err(error) = tokio::fs::create_dir(base_path.clone()).await {
if error.kind() == std::io::ErrorKind::AlreadyExists {
if error.kind() != std::io::ErrorKind::AlreadyExists {
println!("path {:?}", base_path.clone());
println!("error: {:?}", error.to_string());
return Err(ExecuteError::wrap(error.to_string()));
Expand Down

0 comments on commit 66cd401

Please sign in to comment.