-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
This PR will trigger a minor release when merged. |
result.Errors.push(...res.Errors); | ||
errors += res.Errors.length; | ||
} | ||
oks += chunk.length; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) })), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
# [@adobe/helix-shared-storage-v1.1.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-storage-v1.0.9...@adobe/helix-shared-storage-v1.1.0) (2024-10-11) ### Features * use remove() for rmdir() ([#1014](#1014)) ([0d4ce8b](0d4ce8b))
🎉 This PR is included in version @adobe/helix-shared-storage-v1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.