You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by mcrive <mc...@optasportsdata.com> on 2010/02/10 15:50:08 UTC

file language question

Hi,
I have a question about file language

say I have following endpoint

ftp://user@host?password=pwd&fileName=foldername/filename.extension&tempFileName=${file:name.noext}.tmp

the temp file name which will be used is: foldername/filename.tmp

if I change tempFileName to
tempFileName=${file:onlyname.noext}.tmp

I am expecting temp file name to be: filename.tmp

but the FTP component is writing it to foldername/filename.tmp

is it supposed to be so or am I doing something wrong?
-- 
View this message in context: http://old.nabble.com/file-language-question-tp27532326p27532326.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: file language question

Posted by mcrive <mc...@optasportsdata.com>.
so it is supposed to work in such a way

Claus Ibsen-2 wrote:
> 
> On Wed, Feb 10, 2010 at 3:50 PM, mcrive <mc...@optasportsdata.com> wrote:
>>
>> Hi,
>> I have a question about file language
>>
>> say I have following endpoint
>>
>> ftp://user@host?password=pwd&fileName=foldername/filename.extension&tempFileName=${file:name.noext}.tmp
>>
>> the temp file name which will be used is: foldername/filename.tmp
>>
>> if I change tempFileName to
>> tempFileName=${file:onlyname.noext}.tmp
>>
>> I am expecting temp file name to be: filename.tmp
>>
>> but the FTP component is writing it to foldername/filename.tmp
>>
>> is it supposed to be so or am I doing something wrong?
> 
> You can add ../ if you want it to be written in parent folder.
> 
>> --
>> View this message in context:
>> http://old.nabble.com/file-language-question-tp27532326p27532326.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: http://old.nabble.com/file-language-question-tp27532326p27532405.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: file language question

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Feb 10, 2010 at 3:50 PM, mcrive <mc...@optasportsdata.com> wrote:
>
> Hi,
> I have a question about file language
>
> say I have following endpoint
>
> ftp://user@host?password=pwd&fileName=foldername/filename.extension&tempFileName=${file:name.noext}.tmp
>
> the temp file name which will be used is: foldername/filename.tmp
>
> if I change tempFileName to
> tempFileName=${file:onlyname.noext}.tmp
>
> I am expecting temp file name to be: filename.tmp
>
> but the FTP component is writing it to foldername/filename.tmp
>
> is it supposed to be so or am I doing something wrong?

You can add ../ if you want it to be written in parent folder.

> --
> View this message in context: http://old.nabble.com/file-language-question-tp27532326p27532326.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus