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

feat: use remove() for rmdir() #1014

Merged
merged 2 commits into from
Oct 11, 2024
Merged

feat: use remove() for rmdir() #1014

merged 2 commits into from
Oct 11, 2024

Conversation

tripodsan
Copy link
Contributor

No description provided.

Copy link

This PR will trigger a minor release when merged.

result.Errors.push(...res.Errors);
errors += res.Errors.length;
}
oks += chunk.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

still add this to oks, even when res.Errors is non empty?

Copy link
Contributor Author

@tripodsan tripodsan Oct 10, 2024

Choose a reason for hiding this comment

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

maybe we should update the oks also depending on the result

const input = {
Bucket: bucket,
Delete: {
Objects: chunk.map((p) => ({ Key: sanitizeKey(p) })),
Copy link
Contributor

Choose a reason for hiding this comment

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

when passing through rmdir to remove, the paths are already sanitized, but eventually removing a leading / is probably not that expensive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. I thought so, too.

@tripodsan tripodsan merged commit 0d4ce8b into main Oct 11, 2024
8 checks passed
@tripodsan tripodsan deleted the bulk-remove branch October 11, 2024 07:52
adobe-bot pushed a commit that referenced this pull request Oct 11, 2024
@adobe-bot
Copy link

🎉 This PR is included in version @adobe/helix-shared-storage-v1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants