There is a file in ftp server and I have made some attempts to rename it,
but it's always failed.
Below is my code, can anyone give me some suggestions? I will be very
appreciated.
public void process(Exchange exchange) throws Exception {
GenericFile genericFile = (GenericFile)
exchange.getIn().getBody();
genericFile.changeFileName("newName");
exchange.getIn().setBody(genericFile);
}
--
View this message in context:
http://camel.465427.n5.nabble.com/rename-file-with-camel-ftp-tp5496480p5496480.html
Sent from the Camel Development mailing list archive at Nabble.com.