mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Less verbose.
This commit is contained in:
parent
6ec44d0d85
commit
202f8829b6
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue