printOutputLine("N " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine("U " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine("F " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine("- " + localPath, REPORT_LEVEL_ALL); printOutputLine("r " + localPath, REPORT_LEVEL_DIFFERENCES); } else { printOutputLine("R " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine( "Downloading batch of " + downloadPackagesList.size() + " objects", REPORT_LEVEL_ACTIONS); printOutputLine("d " + keyPath, REPORT_LEVEL_DIFFERENCES); } else { printOutputLine("D " + keyPath, REPORT_LEVEL_ACTIONS); if (doAction) { if (file.isDirectory()) {
printOutputLine("N " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine("U " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine("F " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine("- " + localPath, REPORT_LEVEL_ALL); printOutputLine("r " + localPath, REPORT_LEVEL_DIFFERENCES); } else { printOutputLine("R " + localPath, REPORT_LEVEL_ACTIONS); DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload( object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword); printOutputLine( "Downloading batch of " + downloadPackagesList.size() + " objects", REPORT_LEVEL_ACTIONS); printOutputLine("d " + keyPath, REPORT_LEVEL_DIFFERENCES); } else { printOutputLine("D " + keyPath, REPORT_LEVEL_ACTIONS); if (doAction) { if (file.isDirectory()) {
printOutputLine("N " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); } else if (discrepancyResults.updatedOnClientKeys.contains(relativeKeyPath)) { printOutputLine("U " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); printOutputLine("F " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); } else { printOutputLine("- " + targetKey, REPORT_LEVEL_ALL); printOutputLine("r " + targetKey, REPORT_LEVEL_DIFFERENCES); } else { printOutputLine("R " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); printOutputLine( "Uploading batch of " + objectsToUpload.size() + " files", REPORT_LEVEL_ACTIONS); } catch (FileNotFoundException e) { if (skipMissingFiles) { printOutputLine( "WARNING: Skipping unreadable file: " + lazyObj.getFile().getAbsolutePath(),
printOutputLine("N " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); } else if (discrepancyResults.updatedOnClientKeys.contains(relativeKeyPath)) { printOutputLine("U " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); printOutputLine("F " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); } else { printOutputLine("- " + targetKey, REPORT_LEVEL_ALL); printOutputLine("r " + targetKey, REPORT_LEVEL_DIFFERENCES); } else { printOutputLine("R " + targetKey, REPORT_LEVEL_ACTIONS); objectsToUpload.add(new LazyPreparedUploadObject( targetKey, file, md5HashOfFile, aclString, encryptionUtil)); printOutputLine( "Uploading batch of " + objectsToUpload.size() + " files", REPORT_LEVEL_ACTIONS); } catch (FileNotFoundException e) { if (skipMissingFiles) { printOutputLine( "WARNING: Skipping unreadable file: " + lazyObj.getFile().getAbsolutePath(),
printOutputLine("UP " + (doAction ? "" : "[No Action] ") + "Local " + uploadPathSummary + " => " + providerId + "[" + servicePath + "]", throw new SynchronizeException("Only one target directory is allowed for downloads"); printOutputLine("DOWN " + (doAction ? "" : "[No Action] ") + providerId + "[" + servicePath + "] => Local " + files[0], REPORT_LEVEL_NONE);
printOutputLine("UP " + (doAction ? "" : "[No Action] ") + "Local " + uploadPathSummary + " => " + providerId + "[" + servicePath + "]", throw new SynchronizeException("Only one target directory is allowed for downloads"); printOutputLine("DOWN " + (doAction ? "" : "[No Action] ") + providerId + "[" + servicePath + "] => Local " + files[0], REPORT_LEVEL_NONE);