Skip to content

Commit

Permalink
removed some print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rguo123 committed May 16, 2023
1 parent 5ba345d commit d037713
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions s3_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def upload_directory_to_s3(input_path, bucket_name, endpoint_url, aws_access_key
s3_path = os.path.join(relative_path).replace("\\", "/")
else:
s3_path = os.path.join(s3_prefix, relative_path).replace("\\", "/")
print(s3_path)
file_size = os.path.getsize(local_path)
print(f"Uploading {local_path} to {bucket_name} at {s3_path}")
start_time = time.time()
Expand All @@ -64,5 +63,4 @@ def upload_directory_to_s3(input_path, bucket_name, endpoint_url, aws_access_key
parser.add_argument('aws_secret_access_key', type=str, help='The AWS secret access key.')
parser.add_argument('--s3-prefix', type=str, help='The prefix to add to the S3 path (optional).', default="")
args = parser.parse_args()
print(args.input_path)
upload_directory_to_s3(args.input_path, args.bucket_name, args.endpoint_url, args.aws_access_key_id, args.aws_secret_access_key, args.s3_prefix)

0 comments on commit d037713

Please sign in to comment.