How to list some files which are not normal files of ftp server in client side in java?
<p>Here I am using the following code to list all files of a particular directory of ftp server.
This code is successfully working for normal files and showing proper result .but there are few files which are special and which are untouched from FTPClient class.</p>

<pre><code>import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.io.FileUtils;
import java.io.IOException;
//import java.util.ArrayList;
public class ListFileInServer {
  public static void main(String[] args) throws Exception  {
    FTPClient client = new FTPClient();
    client.connect("ftpservername");
    client.enterLocalPassiveMode();
    client.login("username", "Password");
    System.out.println("number of file="+client.list());
    if(client.changeWorkingDirectory("/upload/Test/build/classes")){
    System.out.println("Dir Changed to /upload/Test/build/classes");
    String[] names = client.listNames("/upload/Test/build/classes");
//    if(client.removeDirectory("/upload/Test/build/classes")){
//        System.out.println("Dir /upload/Test/build/classes has been deleted");
//    }

    for (String name : names) {
      System.out.println("Name = " + name);
    }
   }
    client.logout();
    client.disconnect();
  }
}
</code></pre>
