uri - Apache Camel SFTP file download from specific directory -
i used ftp component of camel not download files want.
<camel:endpoint id="ftpnotificationdownload" uri="sftp:/11.1.1.1://app/as?username=aa&password=1111&fastexistscheck=true&localworkdirectory=c:\\asd&download=true&throwexceptiononconnectfailed=true&delay=4000&usefixeddelay=true"/>
i want files , folders downloaded under local folder did not put filename option.
when give host name 11.1.1.1
, works when set directory after host name 11.1.1.1:/app/directory
, not work.
i have checked sftp server , up.
there should not colon (:
) after host name in uri
. , not 1 of 2 slashes. on other hand, missing 1 slash after sftp:
.
see apache camels uris syntax.
sftp://[username@]hostname[:port]/directoryname[?options]
try
sftp://11.1.1.1/app/as?...
note true uri, not camel.
Comments
Post a Comment