From 1574e66c567b541dd3f0d99292fb2f3776e04ce0 Mon Sep 17 00:00:00 2001 From: Pranav Anbarasu Date: Tue, 5 Mar 2024 13:21:11 -0800 Subject: [PATCH] Uncomment lines --- archive-to-current.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive-to-current.R b/archive-to-current.R index a08c167..4242b7a 100644 --- a/archive-to-current.R +++ b/archive-to-current.R @@ -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) @@ -134,4 +134,4 @@ validated_date <- readline("Enter name of Archive folder in yyyy-mm-dd format: " } } -# } +}