dl folder fix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user