peak / s5cmd

Parallel S3 and local filesystem execution tool.
MIT License
2.66k stars 237 forks source link

Unable to delete folder #770

Open hdep opened 15 hours ago

hdep commented 15 hours ago

Hello,

I need to delete a folder on my S3 bucket, the command run without errors but folder remains. Is this a limitation of the tool ? Seems that with other tools this is available feature.

Description of issue

root@server:/tmp# s5cmd rm s3://archives/folder/folder2/subdir1_20241028/
rm s3://archives/folder/folder2/subdir1_20241028/

version

root@server :/tmp# s5cmd version
v2.2.2-48f7e59
rmanus commented 15 hours ago

I ran into the same issue - It looks like s5cmd does not handle object keys ending with a slash properly.

hdep commented 15 hours ago

thanks for sharing, did you identify a bypass for this ?

rmanus commented 15 hours ago

Unfortunately not with s5cmd