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
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
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