From 3e10776bdbd39dec186cc2a9691765e9eaf51a71 Mon Sep 17 00:00:00 2001 From: nelind Date: Tue, 5 Aug 2025 23:53:01 +0200 Subject: [PATCH] use cache dir instead of data dir --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0d35cf9..0a965f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -113,7 +113,7 @@ async fn cached_download( let dirs = BaseDirectories::new(); - let dir = dirs.get_data_home().expect("$HOME is absent").join("pdsfs"); + let dir = dirs.get_cache_home().expect("$HOME is absent").join("pdsfs"); tokio::fs::create_dir_all(&dir).await?; let file = dir.join(&id.did); -- 2.50.0