We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ce5820 commit c496c50Copy full SHA for c496c50
src/client/rqbit.rs
@@ -50,8 +50,11 @@ async fn add_torrent(
50
if let Some(ow) = conf.overwrite {
51
query.push(format!("overwrite={}", ow));
52
}
53
- if let Some(out) = conf.output_folder.to_owned() {
54
- query.push(format!("output_folder={}", encode(&out)));
+ if let Some(out) = conf.output_folder.as_ref() {
+ query.push(format!(
55
+ "output_folder={}",
56
+ encode(&shellexpand::tilde(out))
57
+ ));
58
59
url.set_query(Some(&query.join("&")));
60
0 commit comments