if (new File(stagingDirectory, asRepoRelativePath).isFile()) {
// file exists (likely due to doNotPreClean = true); do not download
getLog().info("Downloading: " + s3RepositoryPath + "/" + asRepoRelativePath + " => (skipping; already downloaded/exists)");
} else { // file doesn't yet exist
final S3Object object = context.getS3Session()
.getObject(new GetObjectRequest(s3RepositoryPath.getBucketName(), summary.getKey()));
try {
File targetFile = new File(stagingDirectory, asRepoRelativePath);
Files.createParentDirs(targetFile);
getLog().info("Downloading: " + s3RepositoryPath + "/" + asRepoRelativePath + " => " + targetFile);
FileUtils.copyStreamToFile(new InputStreamFacade() {