Hi all,
I'm relatively new to python and need some help with creating a script that is able to pair duplicate file names with different extensions.
For example, say I have a image named 'test1.jpg' and a text file with description of that image named 'test1.txt' and multiple files just like that, with different numbers.
How can i group the two and make a new folder each time there is a match? So with a match for 'test1' there would be a folder named test1, which would include the image and text file. I have done a little research but have been unable to find anything I can use. Let me know what this would look like or direct me to a link that explains how to do this please
Thanks in advance!
I'm relatively new to python and need some help with creating a script that is able to pair duplicate file names with different extensions.
For example, say I have a image named 'test1.jpg' and a text file with description of that image named 'test1.txt' and multiple files just like that, with different numbers.
How can i group the two and make a new folder each time there is a match? So with a match for 'test1' there would be a folder named test1, which would include the image and text file. I have done a little research but have been unable to find anything I can use. Let me know what this would look like or direct me to a link that explains how to do this please

Thanks in advance!