From 3d9c12959dda6f16bc7343bbb38f0d20fd3e7234 Mon Sep 17 00:00:00 2001 From: MCorange Date: Wed, 20 Nov 2024 18:57:40 +0200 Subject: [PATCH] Fixed file not found error in windows --- xmpd-cache/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xmpd-cache/src/lib.rs b/xmpd-cache/src/lib.rs index bc86ff7..91e7bc1 100644 --- a/xmpd-cache/src/lib.rs +++ b/xmpd-cache/src/lib.rs @@ -47,6 +47,7 @@ impl Cache { { // Get cached songs let mut song_cache_dir = self.cache_dir.clone(); + std::fs::create_dir_all(&song_cache_dir)?; song_cache_dir.push("songs"); for file in song_cache_dir.read_dir_utf8()? { if let Ok(file) = file {