I'm trying to find a way to create a folder for every file in a directory. I then want to copy each file into its created folder. These files are currently hosted on AWS (S3).
So for example if I have three files, a.jpg, b.jpg and c.jpg. I want to create three folders, a, b and c. And then copy a.jpg into a folder, b.jpg into b folder and c.jpg into c folder. I have lots of files so doing it manually doesn't seem like a good option.
Does anyone have any idea if this is possible?