Page 1 of 1

FTP from Java

PostPosted: Thu Jul 07, 2011 11:46 am
by olivermf
Hello together,

apparently nobody knew an answer to my last java-related question...
Perhaps somebody knows this?

If I use the initiateListParsing() method to list all migrated files files are listed as "null".
I use the Apache Common Libs.

How can I get a list of all files? When I use the standard windows ftp-client all files are listed...

Regards,

Oliver

Re: FTP from Java

PostPosted: Thu Jul 07, 2011 3:13 pm
by olivermf
Hello,

I can answer the question myself now.

The method initiateListParsing() or listFiles() returns a FTPFile[]-Array.
If a file is migrated, there is just shown null for the file-name.

If you use listNames() a String[]-Array is returned where you can find names of migrated files, too.

Have fun,

Regards,

Oliver