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

Reformat.

This commit is contained in:
Cedric Beust 2016-07-18 01:29:56 -08:00
parent f73315d97a
commit 20b37cfc88

View file

@ -24,7 +24,8 @@ public class Md5 {
* a checksum of the last modified timestamp.
*/
fun toMd5Directories(filesOrDirectories: List<File>,
toBytes: (File) -> ByteArray = { "${it.path} ${it.lastModified()} ${it.length()}".toByteArray() } ): String? {
toBytes: (File) -> ByteArray = { "${it.path} ${it.lastModified()} ${it.length()}".toByteArray() } )
: String? {
if (filesOrDirectories.any { it.exists() }) {
MessageDigest.getInstance("MD5").let { md5 ->
var fileCount = 0