Fixed file not found error in windows
This commit is contained in:
parent
b97e6b56f4
commit
3d9c12959d
|
@ -47,6 +47,7 @@ impl Cache {
|
||||||
|
|
||||||
{ // Get cached songs
|
{ // Get cached songs
|
||||||
let mut song_cache_dir = self.cache_dir.clone();
|
let mut song_cache_dir = self.cache_dir.clone();
|
||||||
|
std::fs::create_dir_all(&song_cache_dir)?;
|
||||||
song_cache_dir.push("songs");
|
song_cache_dir.push("songs");
|
||||||
for file in song_cache_dir.read_dir_utf8()? {
|
for file in song_cache_dir.read_dir_utf8()? {
|
||||||
if let Ok(file) = file {
|
if let Ok(file) = file {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user