I have a list of dates and times(from sar in this case) and a list of files in a directory. I want to go through the list of dates/times from list A and for each date/time listed, list the file that was modified at that time. My current idea is to implement two for loops, so for every item in list A do another for loop to look through the directory and test if item in A matches the files modified date.
Unfortunately This would be very inefficient and I'm not sure if it will even work. The lists are in datetime.datetime()
format
List A is just dates List B is the modified dates pulled from the files in the directory(using glob)
Any thoughts?