From b73a8b90b6c893b024f9424096b43d87aeb48c42 Mon Sep 17 00:00:00 2001 From: Mobmaker <45888585+Mobmaker55@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:26:11 -0400 Subject: [PATCH] os file debug --- conditional/blueprints/major_project_submission.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conditional/blueprints/major_project_submission.py b/conditional/blueprints/major_project_submission.py index 352acc0..1a4cd0e 100644 --- a/conditional/blueprints/major_project_submission.py +++ b/conditional/blueprints/major_project_submission.py @@ -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']}")