Vector<FileInfo> fileList = (Vector<FileInfo>) ftp.list("*", null);
Vector<ProtocolFile> returnList = new Vector<ProtocolFile>();
String path = this.pwd().getProtocolPath().getPathString();
for (FileInfo file : fileList) {
returnList.add(new ProtocolFile(this.getRemoteSite(),
new ProtocolPath(path + "/" + file.getName(), file
.isDirectory())));
}
return returnList;
} catch (Exception e) {
throw new ProtocolException("Failed to get list of files : "