From 3c65c61a1a688c9af72855dbf9d3a6eb598299d9 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 28 Jul 2025 15:49:36 +0100 Subject: =?UTF-8?q?=F0=9F=90=9Bfix:=20create=20the=20index=20dir=20before?= =?UTF-8?q?=20the=20index=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types.rs') diff --git a/src/types.rs b/src/types.rs index be3f3ed..fef9071 100644 --- a/src/types.rs +++ b/src/types.rs @@ -25,6 +25,8 @@ pub struct SourceMetadata { impl AppImage { pub async fn save_to_index(&self, appname: &str) -> Result<(), Box> { + fs::create_dir_all(&index_dir()).await?; + let index_file = &index_dir().join(format!("{appname}.json")); let json = serde_json::to_string_pretty(self)?; -- cgit v1.2.3