On Thu, Jun 7, 2012 at 6:50 PM, paramjyotsingh <paramjyotsi...@gmail.com>wrote:

> Hi,
>
> Thanks for the quick reply. "tempFileName" working fine for me, with just
> one glitch.
>
> on ftp server i have paths like /a/test1 and /a/test2 and my tmp file will
> be in dir /a/test2, where "/" is ftp root.
>
> When my ftp uri is
> "ftp://<username>:<host>:<port>/a/test1/?tempFileName=/a/test2/tmp.xml",
> it
> places tmp file at location /a/test1/a/test2/tmp.xml but i want to have it
> at /a/test2/tmp.xml (absolute path with respect to ftp root).
>
>
Can you try with
tempFileName=/a/test2/${file:onlyname}




> When i try uri
> "ftp://<username>:<host>:<port>/a/test1/?tempFileName=../tmp.xml" it works
> fine as my directories test1 and test2 are under same folder but if this
> changes then it will not work for me.
>
> Can you please guide me how to mention absolute path w.r.t ftp root.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/sftp-to-remote-server-and-move-ftpied-file-to-other-location-on-remote-server-tp5714088p5714141.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to