I've written a program to look through images inside a folder and extract the embedded EXIF data. Currently I'm using the code below to get paths for all the files inside a folder, the variable 'folder_name' is input by the user. The list created is then used by the program to cycle through all the images.
file_names = glob(join(expanduser('~'),'Desktop',folder_name,'*'))
You can work around case-sensitivity by applying the
.lower() string method to both strings before comparing them.