Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support empty dir s3 #457

Merged
merged 10 commits into from
Mar 7, 2025
Merged

Support empty dir s3 #457

merged 10 commits into from
Mar 7, 2025

Conversation

jfantinhardesty
Copy link
Contributor

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

Add support for an empty directory marker in S3storage. Support is off by default, to follow semantic versioning for now, but it is enable in all of our tests.

This uses feedback from Michael on the previous PR and keeps all changes in the s3storage component by changing the getKey function to append a trailing slash if the object is a directory.

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

Copy link
Contributor

@foodprocessor foodprocessor left a comment

Choose a reason for hiding this comment

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

Looks great!
I think just IsDirEmpty needs a bit of love.

Copy link
Contributor

@Ferelith-maker Ferelith-maker left a comment

Choose a reason for hiding this comment

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

Nice job

@jfantinhardesty jfantinhardesty merged commit 26a9d1c into main Mar 7, 2025
22 checks passed
@jfantinhardesty jfantinhardesty deleted the support-empty-dir-s3 branch March 7, 2025 21:04
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.

3 participants