camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
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 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message