repaired if condition causing crashes on windows
This commit is contained in:
parent
8d3dd3f012
commit
d32b3e8f0c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user