make SongCacheIndex ignore the .cvsignore file when cleaning out the cache directory.
This commit is contained in:
@@ -35,7 +35,12 @@ void SongCacheIndex::ReadCacheIndex()
|
|||||||
CStringArray asCacheFileNames;
|
CStringArray asCacheFileNames;
|
||||||
GetDirListing( "Cache/*", asCacheFileNames );
|
GetDirListing( "Cache/*", asCacheFileNames );
|
||||||
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
||||||
|
{
|
||||||
|
if (0 == stricmp( asCacheFileNames[i], ".cvsignore" )) // don't delete .cvsignore files
|
||||||
|
continue;
|
||||||
|
|
||||||
remove( "Cache/" + asCacheFileNames[i] );
|
remove( "Cache/" + asCacheFileNames[i] );
|
||||||
|
}
|
||||||
CacheIndex.Reset();
|
CacheIndex.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user