I'd like to unzip a zip-file to a folder called like the zip-file. E.g. original/abc.zip should be unzipped to import/abc/
What I have now does unzip the files in the specified folder.
from("file:" + "</path/to/original>" + "?noop=true").noAutoStartup().routeId("xxx").split(new ZipSplitter()).streaming()
.convertBodyTo(String.class).to("file:" + "</path/to/import>");
How can I get the filename out of the "from" file and put it into the "to" section?
I'm new with Camel, so any help would be apprechiated. Thanks!