[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-win32-users
Subject:    RE: maintaining file dates when using Net::FTP
From:       Carl Jolley <cjolley () iac ! net>
Date:       2002-07-31 18:16:28
[Download RAW message or body]

On Wed, 31 Jul 2002, Ken Cornetet wrote:

> Here's what I do:
>
> $tmeModified = $objFtp->mdtm($src);
> $objFtp->get($src, $dst) or urp( "Could not get $src as $dst. Error: " .
> $objFtp->message() . "\n");
> utime $tmeModified, $tmeModified, $dst;
>
>
>
> -----Original Message-----
> From: Paul Decker [mailto:pdecker@mail.arc.nasa.gov]
> Sent: Tuesday, July 30, 2002 6:36 PM
> To: perl-win32-users@listserv.ActiveState.com
> Subject: maintaining file dates when using Net::FTP
>
>
> I've been doing some FTPs using the Net::FTP module, and the dates on the
> files are being reset to the current date.  I'd like to keep the creation
> date from the server.  How do I do that?
>

The OP asked about keeping the creation date not setting the modified
time.

**** cjolley@iac.net <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic