I doubt it. You might have to do a custom component here or do a rename or copy before the route. In most operating systems a / or \ is an illegal character in the name.
On Wed, Sep 25, 2013 at 9:00 AM, camuser012 <mmi...@gmail.com> wrote: > Hello, > > I'm trying to retrieve a file via FTP. It's a cyclic file, with a special > name SYS:\NAME.EXT. Notice that the backslash is a part of the file name. > > When using this in the endpoint URI, this happens: > > FtpConsumer - doPollDirectory from absolutePath: , > dirName: null > FtpConsumer - Polling directory: > DefaultTypeConverter - Converting java.lang.String -> > java.lang.String with value: *SYS:\NAME.EXT* > FtpConsumer - Found 1 in directory: > FtpConsumer - FtpFile[name=*SYS:\NAME.EXT*, > dir=false, > file=true] > FtpConsumer - Took 0.002 seconds to poll: > FtpConsumer - Total 1 files to consume > FtpConsumer - Processing file: > RemoteFile[SYS:/NAME.EXT] > FtpConsumer - Retrieving file: SYS:/IA.ICMCR from: > Endpoint[ftp://... > FtpOperations - retrieveFile(SYS:/NAME.EXT) > FtpOperations - Client retrieveFile: SYS:/NAME.EXT > > Which then fails because there is no such file. At some point "\" gets > converted to "/". I have tried to fool it with separator set both to UNIX > and Windows, but that does not help. I have tried mayn other things, such > as > fileNmae=${SYS:\NAME.EXT}, or using %5C etc, but nothing helps, it always > defaults to "/". > > Is there a configuration option to skip this conversion? > > Thank you > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/FTP-Support-for-backslash-in-fileName-tp5740203.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39*