Skip to content

Commit c496c50

Browse files
committed
fix(rqbit): output_folder not expanding tilde
1 parent 2ce5820 commit c496c50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/client/rqbit.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ async fn add_torrent(
5050
if let Some(ow) = conf.overwrite {
5151
query.push(format!("overwrite={}", ow));
5252
}
53-
if let Some(out) = conf.output_folder.to_owned() {
54-
query.push(format!("output_folder={}", encode(&out)));
53+
if let Some(out) = conf.output_folder.as_ref() {
54+
query.push(format!(
55+
"output_folder={}",
56+
encode(&shellexpand::tilde(out))
57+
));
5558
}
5659
url.set_query(Some(&query.join("&")));
5760

0 commit comments

Comments
 (0)