I want to add Folder in my amazon s3 bucket using coding. Can you please suggest me how to achieve this?
I guess your query is just simply creating a folder inside folder(subfolder). so while coping any directory data inside a bucket sub folder use command like this.
aws s3 cp mudit s3://mudit-bucket/Projects-folder/mudit-subfolder --recursive
It will create a subfolder and put ur directory contents in it. Also once your subfolder data gets empty. Your Subfolder will automatically gets deleted.