last-modified

How can I set the last modified time of a file from python?

How can I set the last modified time of a file from python? Question: I have a python script that downloads a file over FTP using ftplib. My current download code looks just like the example in the ftp lib docs: ftp.retrbinary(‘RETR README’, open(‘README’, ‘wb’).write) Now I have a requirement that the file downloaded over …

Total answers: 3