Fixed bug in getInfo() when checked file was a directory (we only want non-directories)

This commit is contained in:
nathan 2018-11-03 16:23:39 +01:00
parent f20056b194
commit be2a100b12
1 changed files with 1 additions and 3 deletions

View File

@ -227,10 +227,8 @@ class OSUtil {
File[] list = file.listFiles();
if (list != null) {
for (File f : list) {
if (f.getName()
.contains("release")) {
if (f.isFile() && f.getName().contains("release")) {
// this is likely a file we are interested in.
releaseFiles.add(f);
totalLength += (int) file.length();
}