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

Discussion in 'Python' started by moonhkt, Dec 6, 2012.

  1. moonhkt

    moonhkt Guest

    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
    moonhkt, Dec 6, 2012
    #1
    1. Advertising

  2. 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
    Irmen de Jong, Dec 6, 2012
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Funky
    Replies:
    3
    Views:
    483
    Steven Cheng[MSFT]
    Oct 12, 2005
  2. Manjesh Gowda
    Replies:
    2
    Views:
    389
    Howard
    Sep 2, 2004
  3. switzerland qunatium computer

    HERE I BUILT A QUICK MATRIX TOOOK 5 MINS

    switzerland qunatium computer, Jul 28, 2006, in forum: Java
    Replies:
    1
    Views:
    339
    Andrew Thompson
    Jul 28, 2006
  4. Leo Jay
    Replies:
    0
    Views:
    227
    Leo Jay
    Jun 13, 2008
  5. Steve Howell

    twenty years ago Guido created Python

    Steve Howell, Dec 31, 2009, in forum: Python
    Replies:
    29
    Views:
    652
    Stefan Behnel
    Jan 19, 2010
Loading...

Share This Page