I am trying to upload a dataset of images using boto3. The code runs through my dataset and uploads every image, parititioning them by their appropriate sub-directory: