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