mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jeka] fix old files cleanup
This commit is contained in:
@@ -120,8 +120,9 @@ public class PersistentHashMap<Key, Value> extends PersistentEnumerator<Key>{
|
||||
|
||||
private static File checkDataFiles(final File file) {
|
||||
if (!file.exists()) {
|
||||
final String baseName = file.getName() + ".";
|
||||
final File[] files = file.getParentFile().listFiles(new FileFilter() {
|
||||
final File dataFile = getDataFile(file);
|
||||
final String baseName = dataFile.getName();
|
||||
final File[] files = dataFile.getParentFile().listFiles(new FileFilter() {
|
||||
public boolean accept(final File pathname) {
|
||||
return pathname.getName().startsWith(baseName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user