I seem to have run into a wierd problem. My code is as follows:
Now, for a given type, say images, the foldername will be "Images". The problem I am facing with this code is that only the last file/image remains after having 10 iterations. ie, the first 9 which were output are all deleted and replaced by the last copy of the file..
How do I stop the previous image from getting deleted??
ie, although the folder named "Images" already exists, I am trying to create it again? If this is the problem, what would be the solution to the problem? Because I need to check/create the right folder name for every result based on its type.