1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Less verbose Md5.

This commit is contained in:
Cedric Beust 2017-03-14 18:40:18 -07:00
parent 5000368d64
commit c974330612

View file

@ -31,13 +31,13 @@ class Md5 {
var fileCount = 0
filesOrDirectories.filter(File::exists).forEach { file ->
if (file.isFile) {
kobaltLog(2, " Calculating checksum of $file")
kobaltLog(3, " Calculating checksum of $file")
val bytes = toBytes(file)
md5.update(bytes, 0, bytes.size)
fileCount++
} else {
val files = KFiles.findRecursively(file) // , { f -> f.endsWith("java")})
kobaltLog(2, " Calculating checksum of ${files.size} files in $file")
kobaltLog(3, " Calculating checksum of ${files.size} files in $file")
files.map {
File(file, it)
}.filter {