}
}
if (discrepancyResults.onlyOnServerKeys.contains(keyPath)) {
printOutputLine("N " + localPath, REPORT_LEVEL_ACTIONS);
DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
if (downloadPackage != null) {
downloadPackagesList.add(downloadPackage);
}
} else if (discrepancyResults.updatedOnServerKeys.contains(keyPath)) {
printOutputLine("U " + localPath, REPORT_LEVEL_ACTIONS);
DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
if (downloadPackage != null) {
downloadPackagesList.add(downloadPackage);
}
} else if (discrepancyResults.alreadySynchronisedKeys.contains(keyPath)) {
if (isForce) {
printOutputLine("F " + localPath, REPORT_LEVEL_ACTIONS);
DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
if (downloadPackage != null) {
downloadPackagesList.add(downloadPackage);
}
} else {
printOutputLine("- " + localPath, REPORT_LEVEL_ALL);
}
} else if (discrepancyResults.updatedOnClientKeys.contains(keyPath)) {
// This file has been updated on the client-side.
if (isKeepFiles) {
printOutputLine("r " + localPath, REPORT_LEVEL_DIFFERENCES);
} else {
printOutputLine("R " + localPath, REPORT_LEVEL_ACTIONS);
DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
if (downloadPackage != null) {
downloadPackagesList.add(downloadPackage);
}
}