Skip to content

Commit

Permalink
Uncomment lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavanba authored Mar 5, 2024
1 parent 81d8c96 commit 1574e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive-to-current.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ base_s3_uri_current <-
validated_date <- readline("Enter name of Archive folder in yyyy-mm-dd format: ")

# Index files in Synapse --------------------------------------------------
# if (!is.null(synFindEntityId(validated_date, config::get("PARQUET_FOLDER_ARCHIVE", "prod")))) {
if (!is.null(synFindEntityId(validated_date, config::get("PARQUET_FOLDER_ARCHIVE", "prod")))) {
sync_cmd <- glue::glue("aws s3 --profile service-catalog sync {base_s3_uri_archive}{validated_date}/ {ARCHIVE_TO_CURRENT_DOWNLOAD_LOCATION} --exclude '*owner.txt*' --exclude '*archive*'")
system(sync_cmd)
rm(sync_cmd)
Expand Down Expand Up @@ -134,4 +134,4 @@ validated_date <- readline("Enter name of Archive folder in yyyy-mm-dd format: "

}
}
# }
}

0 comments on commit 1574e66

Please sign in to comment.