checkFtpClient();
String[] pathNames = null;
try {
pathNames = ftpClient.listNames(pathName);
} catch (IOException ex) {
throw new RQLException("List all file names via FTP failed.", ex);
}
// no array returned
if (pathNames == null) {
throw new RQLException("List all file names via FTP failed with an FTP error 550.");
}
// filter and sort whole filename ascending
SortedSet<String> result = new TreeSet<String>();
for (String path : pathNames) {