Fixed file not found error in windows

This commit is contained in:
Gvidas Juknevičius 2024-11-20 18:57:40 +02:00
parent b97e6b56f4
commit 3d9c12959d
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB

View File

@ -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 {