Skip to content

Conversation

2015aroras
Copy link
Collaborator

Issue: Calling S3StorageAdapter.upload on a directory containing subdirectories results in a call to s3_client.upload_file with a directory. This fails with an IsADirectoryError error.

Fix: Make sure to skip directories when listing subtree entries of a directory to upload to S3.

@2015aroras 2015aroras requested a review from epwalsh December 12, 2023 23:12
Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@2015aroras 2015aroras merged commit 6f2abfb into main Dec 13, 2023
@2015aroras 2015aroras deleted the shane/storage-cleaner-fix-s3-upload branch December 13, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants