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:
parent
ae3e5fa546
commit
6b55fbc070
1 changed files with 1 additions and 0 deletions
|
@ -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++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue