I am attempting to use camel to route some files from an FTP into HDFS. My routes in general seem to be working fine, however anytime there is a file that has a space in its name, the route fails. It fails trying to copy the file over to HDFS. The files are dynamic and nature and change daily, so I will not be able to do a specific include and change the file name through .setHeader, nor will I be able to rename the files on the FTP.
Is it possible to dynamically rename files that have a space in there names with camel, before routing them into HDFS?