dl folder fix

This commit is contained in:
TIBERGHIEN corentin
2026-01-25 13:22:20 +01:00
parent 4bb5f9033b
commit 55a0eb21bb
5 changed files with 29 additions and 44 deletions

View File

@@ -280,6 +280,10 @@ impl eframe::App for P2PClientApp {
_ => {}
}
println!("remaining chunks size: {}", self.remaining_chunks.len());
match create_dir("./Download/") {
Ok(_) => println!("Directory created successfully!"),
Err(e) => println!("Failed to create directory: {}", e),
}
if self.remaining_chunks.is_empty() {
let file = OpenOptions::new().append(true).create(true).open(
"./Download/".to_string()