1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -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)) {
log(1, to + " already exists, not overwriting it");
log(2, to + " already exists, not overwriting it");
continue;
} else {
Path from = Paths.get(zipOutputDir, file);
try {
if (isWindows() && to.toFile().exists()) {
log(1, "Windows detected, not overwriting " + to);
log(2, "Windows detected, not overwriting " + to);
} else {
Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);
}