fix filter

This commit is contained in:
Jan-Peter Klein
2025-08-01 09:52:03 +02:00
parent 22a37699ea
commit 164a4de6de

View File

@@ -63,7 +63,7 @@ public final class MasterkeyService {
try (Stream<Path> paths = Files.walk(vaultPath.resolve(DATA_DIR_NAME))) {
Optional<Path> c9rFile = paths //
.filter(p -> p.toString().endsWith(".c9r")) //
.filter(p -> !p.toString().equals("dir.c9r")) //
.filter(p -> !p.endsWith("dir.c9r")) //
.findFirst();
if (c9rFile.isEmpty()) {
LOG.info("Unable to detect Crypto scheme: No *.c9r file found in {}", vaultPath);