*) cleanup cacheAge database when cleaning up the HTCache

*) Log directory deletes with level Fine



git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1427 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 19 years ago
parent 5756b9d5c8
commit 861aae678d

@ -290,7 +290,7 @@ public final class plasmaHTCache {
// If the has been emptied, remove it
// Loop as long as we produce empty driectoriers, but stop at HTCACHE
while ((!(obj.equals(this.cachePath))) && (obj.isDirectory()) && (obj.list().length == 0)) {
if (obj.delete()) this.log.logInfo("DELETED EMPTY DIRECTORY : " + obj.toString());
if (obj.delete()) this.log.logFine("DELETED EMPTY DIRECTORY : " + obj.toString());
obj = obj.getParentFile();
}
return true;
@ -319,6 +319,7 @@ public final class plasmaHTCache {
}
}
}
iter.remove();
}
}

Loading…
Cancel
Save