if (!visitedFiles.add(details.getRelativePath())) {
if (strategy == DuplicatesStrategy.EXCLUDE) {
return;
} else if (strategy == DuplicatesStrategy.FAIL) {
throw new DuplicateFileCopyingException(String.format("Encountered duplicate path \"%s\" during copy operation configured with DuplicatesStrategy.FAIL", details.getRelativePath()));
} else if (strategy == DuplicatesStrategy.WARN) {
LOGGER.warn("Encountered duplicate path \"{}\" during copy operation configured with DuplicatesStrategy.WARN", details.getRelativePath());
}
}
}