I have a simple put and get working, but can't seem to find how to do a delete? For reference, the put code is:
BufferedInputStream inStream = null;
FileOutputStream outStream = null;
try {
final String ftpConnectInfo = "ftp://"+user+":"+pass+"@"+destHost+"/"+destFilename+";type=i";
LOGGER.info("Connection String: {}", ftpConnectInfo);
URL url = new URL(ftpConnectInfo);
URLConnection con = url.openConnection();
inStream = new BufferedInputStream(con.getInputStream());
outStream = new FileOutputStream(origFilename);
int i = 0;
byte[] bytesIn = new byte[1024];
while ((i = inStream.read(bytesIn)) >= 0) {
outStream.write(bytesIn, 0, i);
}
}
Is there some way to modify the URL to do a delete?
Thanks!