added replace option and made path handling better

This commit is contained in:
Waradu 2024-10-20 21:16:05 +02:00
parent 156472e310
commit 2502c02ebd
No known key found for this signature in database
GPG key ID: F85AAC8BA8B8DAAD
4 changed files with 187 additions and 28 deletions

View file

@ -47,7 +47,7 @@ Download:
```rust
let client = StreamShare::default();
match client.download(file_identifier, path).await {
match client.download(file_identifier, path, replace).await {
Ok(_) => println!("File downloaded successfully"),
Err(e) => eprintln!("Error downloaded file: {}", e),
}