----- Original Message ----- From: "Jack Lail" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, September 03, 2005 1:44 AM Subject: NET::FTP::RECURSIVE question on Win32
I'm stuck tyring to do a small program that ftp the contents of a directory. I'm trying to use Net::FTP::Recursive on a Win XP machien. It logs in, but doesn't send the files because I'm not sure what to put in your &yoursub and CommandDir areas. >From the man pages.... rput ( [ParseSub => \&yoursub] [,DirCommand => $cmd] [,FlattenTree => 1] [,RemoveLocalFiles => 1]) The recursive put method call. This will recursively send the local current working directory and its contents to the ftp object's current working directory. ----------------------------------------------------------- Assuming that all you want to do is to "send the local current working directory and its contents to the ftp object's current working directory", it looks to me that you simply: $ftp->rput(); Perhaps you can use yoursub() to ensure that only jpg files get uploaded (not sure). The 'rput', 'rget', 'rdir' and 'rdelete' samples files that ship with the module's source might be helpful. There's also links to those files at: http://search.cpan.org/~jdlee/Net-FTP-Recursive-2.00/MANIFEST Cheers, Rob _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
