DEV Community

Basha
Basha

Posted on

How to get the Last modification date of a file in python?

It is very easy to get it

import os
print("Last modification" + time.ctime(os.path.getmtime(file_dr)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)