Take the 2-minute tour ×  Good evening. I am looking at
developing some code that will collect EXIF data from JPEG
images and store it in a MySQL database using Python v2.x The
stumbling block lies in the fact that the JPEGs are scattered in
a number of subdirectories and further subdirectories in a root
folder so for example 200 JPEGs may be stored in root > subroot
> subsubroot1 as well as a further 100 in root > subroot >
subroot2. Once all images are identified, they will be scanned
and their respective EXIF data abstracted before being added to
a MySQL table.  At the moment I am just at the planning stage
but I am just wondering, what would be the most efficient and
pythonic way to carry out the recursive searching? I am looking
to scan the root directory and append any new identified
subdirectories to a list and then scan all subdirectory paths in
the list for further subdirectories until I have a total list of
all directories. This just seems to be a clumsy way though IMHO
and a bit repetitive so I ass