FTP from Java



Support for Java SE, EE & ME, JVM, JNI, JDBC, EJB, JFC, JPDA, JAAS,JCE, JAXP, XML and Java API.

FTP from Java

Postby olivermf » Thu Jul 07, 2011 11:46 am

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
olivermf
 
Posts: 53
Joined: Tue Feb 08, 2011 4:28 pm
Has thanked: 3 times
Been thanked: 0 time

Re: FTP from Java

Postby olivermf » Thu Jul 07, 2011 3:13 pm

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
olivermf
 
Posts: 53
Joined: Tue Feb 08, 2011 4:28 pm
Has thanked: 3 times
Been thanked: 0 time


Return to Mainframe Java

 


  • Related topics
    Replies
    Views
    Last post