title: Get the last modified date of a directory (including subdirectories) using Python?
body: <p>I am trying to get the last modification date and time of a directory. while doing that I want to include the last modified date of the sub directories as well. </p>
  
  <p>I could find some topics related to this question.(<a href="https://stackoverflow.com/questions/237079/how-to-get-file-creation-modification-date-times-in-python">How to get file creation &amp; modification date/times in Python?</a>) but all of those just gives the last modified time of the root directory without considering the sub directories. </p>
  
  <pre><code>import os.path, time
  print "last modified: %s" % time.ctime(os.path.getmtime(file))
  print "created: %s" % time.ctime(os.path.getctime(file))
  </code></pre>
  
  <p>These lines of code just gives the last modified time of the root directory without considering the sub directories. 
  Please help me on this. </p>