fix cache dir being wiped before we can write anything into it
This commit is contained in:
@@ -32,7 +32,10 @@ static void EmptyDir( CString dir )
|
|||||||
CStringArray asCacheFileNames;
|
CStringArray asCacheFileNames;
|
||||||
GetDirListing( dir, asCacheFileNames );
|
GetDirListing( dir, asCacheFileNames );
|
||||||
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
||||||
remove( dir + asCacheFileNames[i] );
|
{
|
||||||
|
if( !IsADirectory(dir + asCacheFileNames[i]) )
|
||||||
|
remove( dir + asCacheFileNames[i] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SongCacheIndex::ReadCacheIndex()
|
void SongCacheIndex::ReadCacheIndex()
|
||||||
|
|||||||
Reference in New Issue
Block a user