mirror of
https://github.com/Waradu/streamshare.git
synced 2025-04-21 11:54:09 +02:00
added replace option and made path handling better
This commit is contained in:
parent
156472e310
commit
2502c02ebd
4 changed files with 187 additions and 28 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue