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

M

moonhkt

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
 
I

Irmen de Jong

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top