Temporary files that are not used at runtime are now not checked.
This commit is contained in:
parent
f104aba739
commit
ad3e7501ca
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ public interface IFileDetector {
|
||||||
* @return True represents the file is ready.
|
* @return True represents the file is ready.
|
||||||
*/
|
*/
|
||||||
default boolean checkExtraFile(Path path, String sha1) {
|
default boolean checkExtraFile(Path path, String sha1) {
|
||||||
return Files.isRegularFile(path) && (sha1 == null || sha1.equals("") || sha1.toLowerCase(Locale.ENGLISH).equals(getFileSHA1(path)));
|
return sha1 == null || sha1.equals("") || (isFile(path) && sha1.toLowerCase(Locale.ENGLISH).equals(getFileSHA1(path)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isFile(Path path) {
|
static boolean isFile(Path path) {
|
||||||
|
|
Loading…
Reference in a new issue