move song cache into a subdir

This commit is contained in:
Glenn Maynard
2003-06-23 23:00:49 +00:00
parent 9348ab2341
commit 474875f7cb
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -12,7 +12,7 @@ SongCacheIndex *SONGINDEX;
SongCacheIndex::SongCacheIndex()
{
mkdir("Cache", 0755);
CreateDirectories( "Cache/Songs" );
CacheIndex.SetPath( "Cache/index.cache" );
ReadCacheIndex();
}
@@ -50,6 +50,7 @@ void SongCacheIndex::ReadCacheIndex()
LOG->Trace( "Cache format is out of date. Deleting all cache files." );
EmptyDir( "Cache/" );
EmptyDir( "Cache/Banners/" );
EmptyDir( "Cache/Songs/" );
CacheIndex.Reset();
}