mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
log checksum calculation for files in filesOrDirectories
parameter
This commit is contained in:
parent
ae3e5fa546
commit
6b55fbc070
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ public class Md5 {
|
||||||
var fileCount = 0
|
var fileCount = 0
|
||||||
filesOrDirectories.filter { it.exists() }.forEach { file ->
|
filesOrDirectories.filter { it.exists() }.forEach { file ->
|
||||||
if (file.isFile) {
|
if (file.isFile) {
|
||||||
|
log(2, " Calculating checksum of $file")
|
||||||
val bytes = toBytes(file)
|
val bytes = toBytes(file)
|
||||||
md5.update(bytes, 0, bytes.size)
|
md5.update(bytes, 0, bytes.size)
|
||||||
fileCount++
|
fileCount++
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue