RE: Fileops

2002-04-26 Thread Thomas R Wyant_III
Josh, If you're mirroring, I've had fairly good luck with the Perl mirror package from http://sunsite.org.uk/packages/mirror/ The interface is a little clunky, but it works. For each directory tree you want to mirror, you make a little parameter file that describes where you're coming from and

RE: Fileops

2002-04-26 Thread Sidwell, Josh
mat section that determines the layout for the results of our transfer format STDOUT = @<<<<<<<<<<<<<<<@>>>>>>>>>>>>>>> $file->{'name'}, $file->{'size'}

RE: Fileops

2002-04-26 Thread Timothy Johnson
If you want to get the size, modified date, etc. for the local files, you can use stat(). perldoc -f stat -Original Message- From: Ken Cornetet [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:30 AM To: 'Sidwell, Josh'; '[EMAIL PROTECTED]' Subject: RE: Fi

RE: Fileops

2002-04-26 Thread David Kramer
Josh, I do something very similar to this in one of my daily processes, however I use a different FTP module than you, NET::FTP, (or maybe you found some new doc on this than I have). Anyway I recommend that you use the FILE::STAT module -> size method to retrieve the File size for compari

RE: Fileops

2002-04-26 Thread Ken Cornetet
Here's how I do something similar... $objFtp->cwd($ftpdir) or urp( "Could not CD to $ftpdir. Error: " . $objFtp->message() . "\n" ); # Grab list of files my @aryFiles = $objFtp->ls(); # Look through list finding newest foreach my $strFile (@aryFiles) { $tmeModified = $objFtp-