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

log checksum calculation for files in filesOrDirectories parameter

This commit is contained in:
DevCharly 2016-07-06 14:42:24 +02:00
parent ae3e5fa546
commit 6b55fbc070

View file

@ -30,6 +30,7 @@ public class Md5 {
var fileCount = 0
filesOrDirectories.filter { it.exists() }.forEach { file ->
if (file.isFile) {
log(2, " Calculating checksum of $file")
val bytes = toBytes(file)
md5.update(bytes, 0, bytes.size)
fileCount++