添加测试结束后颜色显示, 方便判断, 修复部分Bug

This commit is contained in:
JIe
2024-12-11 14:07:30 +08:00
parent 85939e7fc4
commit 410a2ad5e1
3 changed files with 56 additions and 30 deletions

View File

@@ -204,7 +204,7 @@ impl DownloadWrapper {
}
fn save_log(& self, label: String, log: String) -> Result<bool, DownloadError> {
if !fs::exists("./log") {
if !fs::exists("./log").unwrap() {
fs::create_dir("./log").expect("Cant Create Log Folder");
}
let mut file = fs::OpenOptions::new()