mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Less verbose Md5.
This commit is contained in:
parent
5000368d64
commit
c974330612
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue