You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I had a file with an unfortunate filename containing '[?]' which s3cmd was unable to delete: s3cmd rm s3://data/[?]_MP_-_Materials-f121-49af-8df1-27dad27f1ab9.zip
How to replicate:
$ touch test_[?].txt
$ s3cmd put test_\[\?\].txt s3://data/
upload: 'test_[?].txt' -> 's3://data/test_[?].txt' [1 of 1]
0 of 0 0% in 0s 0.00 B/s done
upload: 'test_[?].txt' -> 's3://data/test_[?].txt' [1 of 1]
0 of 0 0% in 0s 0.00 B/s done
$ s3cmd ls s3://data/test_\[\?\].txt
2024-12-19 08:31 0 s3://data/test_[?].txt
$ s3cmd rm s3://data/test_\[\?\].txt
$ s3cmd ls s3://data/test_\[\?\].txt
2024-12-19 08:31 0 s3://data/test_[?].txt
Expected behaviour: file gets deleted.
The text was updated successfully, but these errors were encountered:
Still the same. Just checked with newer and older versions: s3cmd version 2.4.0 and s3cmd version 2.2.0
I didn't look into the debug flag's output too much, but I got the gist that it does not find anything to delete. I expect that [?] is either escaped wrongly.
@tomsbergmanis I've tried both putting the object name in single quote and without it and couldn't reproduce the bug and the file correctly removed. In example above there is no output of rm command. could you please retry with verbose mode (with -v switch)?
Hi
I had a file with an unfortunate filename containing '[?]' which s3cmd was unable to delete:
s3cmd rm s3://data/[?]_MP_-_Materials-f121-49af-8df1-27dad27f1ab9.zip
How to replicate:
Expected behaviour: file gets deleted.
The text was updated successfully, but these errors were encountered: