Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Preserving timestamps with Net::FTP

by RhetTbull (Curate)
on Jun 25, 2001 at 23:48 UTC ( [id://91407]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #get the modification time of the remote file
    #assuming $ftp is a Net::FTP object
    ...
    #set the time of the local file
    # (assumes $file is also the local file name)
    utime $mtime, $mtime, $file;
    
  2. or download this
    my $now = time;
    utime $now, $now, @localfiles;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://91407]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found