Hi,
I would like to FTP a file that only part of the filename is known.
The name is something like “ClimateData2010042207XXXX.xls”
performing the following does not work:
FTPClient client = new FTPClient();
FileOutputStream fos = null;
client.connect("ftp.domain.com");
client.login("admin", "secret");
String filename = “ClimateData2010042207*.xls”;
fos = new FileOutputStream(filename);
client.retrieveFile("/" + filename, fos);
fos.close();
client.disconnect();
Please advice,
Yair