Skip to content

Commit

Permalink
Added code that should remove old UMM-G files
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedorfman committed May 15, 2024
1 parent 4c8f1e0 commit 3e3a357
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ public String PerformFunction(String input, Context context) throws Exception {
footprint = s3Utils.download(region, (String) file.get("bucket"), key,
Paths.get("/tmp", filename).toString());
objectList.add(f);
} else if (filename.endsWith(".cmr.json")) {
// This file is a UMM-G file - add it to the objectList so it's removed from the files list
objectList.add(f);
} else if (isoRegex != null && filename.matches(isoRegex)) {
AdapterLogger.LogDebug(this.className + " download isoRegrex from bucket:" + file.get("bucket") +
" key" + file.get("key") + " to:" + Paths.get("/tmp", filename));
Expand Down

0 comments on commit 3e3a357

Please sign in to comment.