title: Python - It returns the modified date from the folder
body: <p>I've the following code in order to get the last modified date from the files present in the Folder:</p>
  
  <pre><code>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')
  </code></pre>
  
  <p>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.</p>
  
  <p>How can I update my code?</p>