I have a programme that sorts files into sub folders within a main file. I want to be able to print out in the console how many files are in each sub folder. Here is a example of my file structure.
Main file → subfolder → folders I want to count
the subfolder could be any random number so i cannot use perticular file names on this folder. So what I need to do is look in the main file check how many subfolders there are and then get the names of the subfolders. Then go in the subfolders and get a count of how many folders are in there.
I hope you can help, I probably made this sound way harder than it is