Skip to content

Commit

Permalink
improving ordering of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGeorgist committed Feb 24, 2023
1 parent 768ddc1 commit dbf5516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/usace/wat/plugin/CcStoreS3.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ public Payload GetPayload() throws AmazonS3Exception {
}
private byte[] DownloadBytesFromS3(String key) throws Exception{
S3Object fullObject = null;
System.out.println(key);
System.out.println(remoteRootPath);
boolean spaces = key.contains(" ");
if(spaces){
key = "\""+ key + "\"";
}
System.out.println(key);
System.out.println(remoteRootPath);
try {
fullObject = awsS3.getObject(new GetObjectRequest(remoteRootPath, key));
System.out.println("Content-Type: " + fullObject.getObjectMetadata().getContentType());
Expand Down

0 comments on commit dbf5516

Please sign in to comment.