camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to change directory while using sftp component
Date Wed, 29 Sep 2010 06:37:23 GMT
On Wed, Sep 29, 2010 at 12:25 AM, Lorrin <lhn_github@nerdylorrin.net> wrote:
>
> Hi, thanks for the reply.
>
> It sounds like you're saying I should use a URI relative to the user's home
> directory and then it will work. That's true and I'm using that as a
> work-around for now.
>
> But it seems like a bug to me that I am constrained to polling within the
> user's home directory. If I specify an absolute URL, it half-works, listing
> the files but then throwing Exceptions when trying to retrieve them.

Apparently some FTP server is stupid and don't allow you to use a path
when retrieving a file.

Hence you must do:
cd foo
cd bar
get thefile.txt
cd ..
cd ..

And not just
get foo/bar/thefile.txt

I will create a ticket for improvement in Camel to do the first style
when retrieving the file.


> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-change-directory-while-using-sftp-component-tp2806817p2902696.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

Mime
View raw message