How to list a file which already created a 2 mins ago

Irmen de Jong irmen.NOSPAM at xs4all.nl
Thu Dec 6 22:29:05 CET 2012


On 6-12-2012 17:49, moonhkt wrote:
> Hi All
> 
> AIX.5.3
> Python 2.6.2
> 
> File ftp to Machine A, need to rename then send to Machine B.
> 
> How to list a file which already created a 2 mins ago ?  If file aging
> more than 2 mins. I want to rename file to other file name.
> 
> moonhkt
> 

ftplib.FTP
os.path.getmtime
os.rename
time.time

Should be some pointers to get started.


Irmen




More information about the Python-list mailing list