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

Less verbose.

This commit is contained in:
Cedric Beust 2016-04-21 01:27:51 -08:00
parent 6ec44d0d85
commit 202f8829b6

View file

@ -204,7 +204,7 @@ class KFiles {
dstFile.mkdirs()
} else {
if (Features.USE_TIMESTAMPS && dstFile.exists() && Md5.toMd5(src) == Md5.toMd5(dstFile)) {
log(2, " Identical files, not copying $src to $dstFile")
log(3, " Identical files, not copying $src to $dstFile")
} else {
val target = src.copyTo(dstFile, true)
if (target.length() != src.length()) {
@ -257,10 +257,10 @@ class KFiles {
try {
if (from != null && to != null) {
if (!Files.exists(to) || Md5.toMd5(from.toFile()) != Md5.toMd5(to.toFile())) {
log(2, "Copy from $from to ${to}")
log(3, "Copy from $from to $to")
Files.copy(from, to, option)
} else {
log(2, " Not copying, indentical files: $from $to")
log(3, " Not copying, indentical files: $from $to")
}
}
} catch(ex: IOException) {