Get Folder Modification Time

Please refer below script to get folder modification time,

import os
import time
print time.ctime(max(os.stat(root).st_mtime for root,_,_ in os.walk("C:\\Users\\Max\\Desktop\\files")))

Sample output would be,

Tue Sep 27 22:02:17 2016