diff --git a/src/main/java/net/szum123321/textile_backup/core/Utilities.java b/src/main/java/net/szum123321/textile_backup/core/Utilities.java index 7d82400..7f26456 100644 --- a/src/main/java/net/szum123321/textile_backup/core/Utilities.java +++ b/src/main/java/net/szum123321/textile_backup/core/Utilities.java @@ -115,9 +115,11 @@ public class Utilities { } public static boolean isBlacklisted(Path path) { - if (path.getFileName().equals("session.lock")) return true; + log.info(path.getFileName().toString()); + if (path.getFileName().equals(Path.of("session.lock"))) return true; + log.info(path.getFileName().toString()); - if(path.getFileName().endsWith(CompressionStatus.DATA_FILENAME)) return true; + if(path.getFileName().equals(Path.of(CompressionStatus.DATA_FILENAME))) return true; return config.get().fileBlacklist.stream().anyMatch(path::startsWith); }