Skip to content

Add 'stripKeyPrefix' option to TransferManager's downloadDirectory method #1322

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

Conversation

kevin860
Copy link

Added an option to strip key prefixes to change downloadDirectory method behaviour without breaking backwards compatibility.

See #1321

*/
public MultipleFileDownload downloadDirectory(String bucketName, String keyPrefix, File destinationDirectory,
boolean resumeOnRetry, KeyFilter filter) {
boolean resumeOnRetry, KeyFilter filter, boolean stripKeyPrefix) {

Choose a reason for hiding this comment

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

You never use this flag to strip the key prefix from the object key 😕

Copy link
Author

Choose a reason for hiding this comment

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

Oops that's embarrassing! That's what I get for re-doing my changes in a more pull request worthy way...

Thanks, I pushed the actual functionality.

@louisburton
Copy link

There a reason this wasn't merged? Be nice to have this option rather than downloading and having to move things to correct them subsequently.

@millems
Copy link
Contributor

millems commented Mar 31, 2020

Sorry about the delay on this. Can you share some test code for this functionality? We'd like to import it to our test suite before we merge this change.

@millems millems added closing-soon This issue will close in 2 days unless further comments are made. response-requested Waiting on additional info or feedback. Will move to "closing-soon" in 5 days. and removed closing-soon This issue will close in 2 days unless further comments are made. labels Mar 31, 2020
@github-actions
Copy link

github-actions bot commented May 7, 2020

It looks like this PR hasn’t been active in longer than a week. In the absence of more information, we will be closing this PR soon. Please add a comment to prevent automatic closure, or if the PR is already closed please feel free to open a new one.

@github-actions github-actions bot added closing-soon This issue will close in 2 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will close in 2 days unless further comments are made. labels May 7, 2020
@github-actions github-actions bot closed this May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness response-requested Waiting on additional info or feedback. Will move to "closing-soon" in 5 days.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants