if (batchDir.exists()) {
Collection<File> files = FileUtils.listFiles(batchDir, HiddenFileFilter.VISIBLE, FileFilterUtils.directoryFileFilter());
for (File file : files) {
String filename = file.getName();
if (StringUtils.endsWith(filename, ".jar")) {
sb.append(filename).append('|').append(new FileHashes().of(file)).append(CharUtils.LF);
}
}
}
this.index = sb.toString();
}