Skip to content

Commit

Permalink
Lucence dir checkers should only delete lucence dirs (#8854)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr authored May 29, 2022
1 parent e07f293 commit e8b80da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/JabRefMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private static void clearOldSearchIndices() {

try (DirectoryStream<Path> stream = Files.newDirectoryStream(appData)) {
for (Path path : stream) {
if (Files.isDirectory(path) && !path.equals(currentIndexPath)) {
if (Files.isDirectory(path) && !path.toString().endsWith("ssl") && path.toString().contains("lucene") && !path.equals(currentIndexPath)) {
LOGGER.info("Deleting out-of-date fulltext search index at {}.", path);
Files.walk(path)
.sorted(Comparator.reverseOrder())
Expand Down

0 comments on commit e8b80da

Please sign in to comment.