# Practical 6 – Cloud Security: Prepare S3 Bucket
# Install: pip install boto3
# Before running, configure AWS credentials (for example: `aws configure`) with
# S3 permissions and select the us-east-1 region. Choose a globally unique
# bucket name and use the same name in this and the upload/download scripts.
# Run third, from the same folder: python p6_cloudSec_s3_setup.py
import os

if not os.path.exists("cloud_storage"):
    os.makedirs("cloud_storage")
    print("Cloud storage created.")
else:
    print("Cloud storage already exists.")

# What this code does: creates the local cloud_storage folder used to simulate
# a cloud bucket for the upload and download scripts.