You are probably using '\' as path separator. Maybe System property 
'file.separator' is '\' on Windows.

Ales

-----Original Message-----
From: iyusuf [mailto:iqbalyusufdipu+mailingl...@gmail.com] 
Sent: Friday, January 18, 2013 1:17 AM
To: users@camel.apache.org
Subject: Cannot change directory to: \

Hi,

I am trying to connect to a SFTP hosted on a Linux box from a Windows 7 64 bit 
developer laptop. I am trying to put files (SFTP as producer) on remote sftp 
server. If I don't use directory path files get uploaded but if I use 
sub-directory I get the following error. I've tried both "stepwise=true" and 
"stepwise=false".

Cannot change directory to: \

Here is my relevant code snippet...

from("file:data/outbox?fileName=test2.txt")
.to("sftp://sandbox1.my.org:22/?fileName=BENEFITS/test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true";);

I tried the following which also doesn't work.
from("file:data/outbox?fileName=test2.txt")
.to("sftp://sandbox1.my.org:22/BENEFITS/?fileName=test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true";);


I am using JSCH version 0.1.49 and
camel-core version 2.10.3

Thanks,



--
View this message in context: 
http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to