fix(lib): don't create '~' in $HOME (#166)

* fix(lib): don't create '~' in $HOME

* throw an error wen fail to get home directory

---------

Co-authored-by: arabian <a.tevg@ya.ru>
This commit is contained in:
tonoco
2026-07-20 19:02:10 +03:00
committed by GitHub
co-authored by arabianq
parent 322b93efa1
commit 6130a99c4b
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ async fn download_audio_from_url(uri: &str) -> Result<PathBuf> {
.and_then(|n| n.to_str())
.unwrap_or("downloaded_audio.mp3");
let save_path = ensure_pwsp_audio_dir().join(sanitized_file_name);
let save_path = ensure_pwsp_audio_dir()?.join(sanitized_file_name);
let response = reqwest::get(target_url)
.await?