Skip to content

Commit

Permalink
os file debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobmaker55 committed Sep 6, 2024
1 parent b9a2f33 commit b73a8b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conditional/blueprints/major_project_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def submit_major_project(user_dict=None):
bucket = s3.create_bucket(Bucket="major-project-media")
# Collect all the locally cached files and put them in the bucket
for file in os.listdir(f"/tmp/{user_dict['username']}"):
print(file)
bucket.upload_file(file, file.split("/")[-1])
os.remove(file)
os.rmdir(f"/tmp/{user_dict['username']}")
Expand Down

0 comments on commit b73a8b9

Please sign in to comment.