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.

Reply via email to