30.10.2010, 22:37
Mhh.. still not working on Linux :/
It counts the files, and the ms increases(meaning that it's prossesing it), but they don't get deleted.. why?
pawn Code:
new time = GetTickCount();
new file[24], files;
for(new i; i < 1000; i ++)
{
format(file, 24, "djson-db-cache.%d.db", i);
if(fexist(file))
{
files++;
fremove(file);
}
}
printf("Cache files deleted in: %d ms. Total cache files deleted: %d", GetTickCount()-time, files);