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

Account for s3 paths not having a trailing slash #557

Merged
merged 2 commits into from
Dec 16, 2013

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Dec 14, 2013

Fixes #552

@toastdriven
Copy link
Contributor

LGTM. 🚢 it.

full_path = self.files.create_file('foo.txt', 'mycontent')
# Here we're saying s3://bucket instead of s3://bucket/
# This should still work the same as if we added the trailing slash.
cmdline = '%s %s s3://bucket/' % (self.prefix, full_path)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be s3://bucket rather than s3://bucket/?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, will update.

@jamesls
Copy link
Member Author

jamesls commented Dec 16, 2013

Test has been updated.

@garnaat
Copy link
Contributor

garnaat commented Dec 16, 2013

LGTM

@jamesls jamesls merged commit 0091306 into aws:develop Dec 16, 2013
@jamesls jamesls deleted the s3-trailing-slash branch June 23, 2014 18:21
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
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.

Missing trailing slash from bucket aws s3 mv gives confusing error message
3 participants