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 2015-12-11 21:17:22 +04:00
parent 8de5e5f1f4
commit 20167caae9

View file

@ -171,13 +171,13 @@ public class Main {
} }
if (Files.exists(to)) { if (Files.exists(to)) {
log(1, to + " already exists, not overwriting it"); log(2, to + " already exists, not overwriting it");
continue; continue;
} else { } else {
Path from = Paths.get(zipOutputDir, file); Path from = Paths.get(zipOutputDir, file);
try { try {
if (isWindows() && to.toFile().exists()) { if (isWindows() && to.toFile().exists()) {
log(1, "Windows detected, not overwriting " + to); log(2, "Windows detected, not overwriting " + to);
} else { } else {
Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING); Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);
} }