mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 15:12:30 -05:00
rbutil: Fix cleaning cache.
As with calculating the size cleaning the cache folder needs to be recursive. Change-Id: I05a8e2287bcdf6ed53acde320cb5071e8ed04b91
This commit is contained in:
parent
ec01c57022
commit
022bbad762
1 changed files with 1 additions and 7 deletions
|
|
@ -875,13 +875,7 @@ void Config::cacheClear()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QDir dir(cache);
|
QDir dir(cache);
|
||||||
QStringList fn;
|
dir.removeRecursively();
|
||||||
fn = dir.entryList(QStringList("*"), QDir::Files, QDir::Name);
|
|
||||||
|
|
||||||
for(int i = 0; i < fn.size(); i++) {
|
|
||||||
QString f = cache + fn.at(i);
|
|
||||||
QFile::remove(f);
|
|
||||||
}
|
|
||||||
updateCacheInfo(RbSettings::value(RbSettings::CachePath).toString());
|
updateCacheInfo(RbSettings::value(RbSettings::CachePath).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue