Hi 

For what it is worth I got this code working fine in Camel 1.3:

                String fileUrl =
"file:target/ftptest/?append=false&noop=true";
                from(ftpUrl).setHeader(FileComponent.HEADER_FILE_NAME,
constant("deleteme.txt")).
                       
convertBodyTo(String.class).to(fileUrl).to("mock:result");

I will add a unit test (FromFtpToAsciiFileTest) that verifies that it works
on Camel 1.3+

/Claus

misge wrote:
> 
> Hello,
> I'm using the following in order to fetch a file though FTP and then store
> it locally in my client. As a result, i have a directory created instead
> of a file even though that i set the FileComponent.HEADER_FILE_NAME.
> I'm getting the same behaviour with or without the
> FileComponent.HEADER_FILE_NAME set.
> 
> String ftpReceive = 
> "ftp://[EMAIL 
> PROTECTED]:21/Adobe/delme.txt?password=xxx&binary=false&directory=false";
>                       
> from(ftpReceive).setHeader(FileComponent.HEADER_FILE_NAME,constant("delmeTo.txt")).to("file:inputdir/?append=false&noop=true");
> 
> I'm using mina 1.2.0
> 
> Regards,
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FTP-to-FILE-tp16354813s22882p16380813.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to