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:
parent
5000368d64
commit
c974330612
1 changed files with 2 additions and 2 deletions
|
@ -31,13 +31,13 @@ class Md5 {
|
||||||
var fileCount = 0
|
var fileCount = 0
|
||||||
filesOrDirectories.filter(File::exists).forEach { file ->
|
filesOrDirectories.filter(File::exists).forEach { file ->
|
||||||
if (file.isFile) {
|
if (file.isFile) {
|
||||||
kobaltLog(2, " Calculating checksum of $file")
|
kobaltLog(3, " 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++
|
||||||
} else {
|
} else {
|
||||||
val files = KFiles.findRecursively(file) // , { f -> f.endsWith("java")})
|
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 {
|
files.map {
|
||||||
File(file, it)
|
File(file, it)
|
||||||
}.filter {
|
}.filter {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue