l have a directory called /data/
which contains two sub-directories: /data/train/
and /data/test/
. train
and test
each contain 101 sub-directories (101 directories in train
and 101 in test
).
These directories contain jpeg images. I want to loop through all the directories to:
- Count the total number of images
- Count the number of images contained in each directory