Skip to content

Commit

Permalink
fix: 解密文件不存在时,删除创建的文件
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleClark committed Jul 2, 2024
1 parent b00d351 commit 063567d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ async fn aes256_decrypt(file_path: String, secret_key: String, save_path: String
}
},
Err(_) => {
remove_file(&save_path).unwrap();
res.push_str("notFound");
}
}
Expand Down

0 comments on commit 063567d

Please sign in to comment.