Fix #2397 Fractureiser 检测没有判断是否为文件 (#2398)

* Fix #2397

* Update FractureiserDetector.java

---------

Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
Burning_TNT 2023-07-16 03:07:33 +08:00 committed by GitHub
parent 03b20a70bb
commit 4fca632efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ public final class FractureiserDetector {
} }
for (Path badPath : badPaths) { for (Path badPath : badPaths) {
if (Files.exists(badPath)) { if (Files.isRegularFile(badPath)) {
return true; return true;
} }
} }