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

s3cmd implicitly adds a '*' to the end of path names #231

Open
richardalow opened this issue Oct 3, 2013 · 3 comments
Open

s3cmd implicitly adds a '*' to the end of path names #231

richardalow opened this issue Oct 3, 2013 · 3 comments

Comments

@richardalow
Copy link

s3cmd has surprising behaviour when listing or deleting:

s3cmd ls s3://bucket/dir/b
2013-10-03 16:35         0   s3://bucket/dir/b
2013-10-03 16:35         0   s3://bucket/dir/bb

which is inconsistent with ls, that would only list b. Deleting has slightly different but still unexpected behaviour. A single delete is OK:

s3cmd del s3://bucket/dir/b
File s3://bucket/dir/b deleted

but if I create directories 'b' and 'bb' then

s3cmd del -r s3://bucket/dir/b
File s3://bucket/dir/b/file deleted
File s3://bucket/dir/bb/file deleted

I've lost the files in 'bb' too! This is very surprising.

@mdomsch
Copy link
Contributor

mdomsch commented Oct 5, 2013

which version please?

On Thu, Oct 3, 2013 at 11:40 AM, richardalow [email protected]:

s3cmd has surprising behaviour when listing or deleting:

s3cmd ls s3://bucket/dir/b
2013-10-03 16:35 0 s3://bucket/dir/b
2013-10-03 16:35 0 s3://bucket/dir/bb

which is inconsistent with ls, that would only list b. Deleting has
slightly different but still unexpected behaviour. A single delete is OK:

s3cmd del s3://bucket/dir/b
File s3://bucket/dir/b deleted

but if I create directories 'b' and 'bb' then

s3cmd del -r s3://bucket/dir/b
File s3://bucket/dir/b/file deleted
File s3://bucket/dir/bb/file deleted

I've lost the files in 'bb' too! This is very surprising.


Reply to this email directly or view it on GitHubhttps://github.com//issues/231
.

@richardalow
Copy link
Author

I reproduced on 1.0.0, 1.0.1 and master.

@fviard
Copy link
Contributor

fviard commented Mar 4, 2018

The ls is still showing all the files with the same prefix, but the bad behavior with the delete should already be fixed.

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

No branches or pull requests

3 participants