I've the following code in order to get the last modified date from the files present in the Folder:
path = 'C://Reports//Script//'
modTimesinceEpoc = os.path.getmtime(path)
modificationTime = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(modTimesinceEpoc))
modificationTime = datetime.strptime(modificationTime, '%Y-%m-%d %H:%M:%S')
But this returns the modified date from the folder and I only want to check the modified dates from the files, since I don't want to know the modified date from the folder.
How can I update my code?