I have an Android app that lists folders and files of a FTP directory. I use Apache Commons FTP Client. It comes down to this line which I call for every folder
FTPFile[] folderElements = ftpClient.listFiles(folderName);
Works fine but is very time consuming. The whole task (getting all files and folders) takes about a minute. Can I speed that up somehow?
I already tried
ftpClient.setBufferSize(1024000);