Re: Getting a whole directory using Net::FTP

2003-03-12 Thread Michaƫl De Meirleir
Ruben, The ls method will return an array of filenames. It worked fine for me. Also, add "or die" to each of the methods you use. My experience with FTP is that it tends to "die" once in a while, resulting in incomplete directory lists etc Cheers, Michael. "Ruben Van De Vijver" <[EMAIL PROTE

Re: Getting a whole directory using Net::FTP

2003-03-06 Thread Sudarshan Raghavan
On Thu, 6 Mar 2003, ruben van de vijver wrote: > Hi, > > I would like to upload and download files to a Linux server from my > Windows machine. So, I set out to write a little script that does just > that. Uploading, it turns out, is no problem. I use an "opendir" > statement to open the direc

Getting a whole directory using Net::FTP

2003-03-06 Thread ruben van de vijver
Hi, I would like to upload and download files to a Linux server from my Windows machine. So, I set out to write a little script that does just that. Uploading, it turns out, is no problem. I use an "opendir" statement to open the directory, then readdir to read its contents and then each file