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 {