You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Goyal, Arpit" <ar...@sap.com> on 2016/12/21 22:26:04 UTC
Camel Sftp - Stepwise & No Such File
Hello
For a running scenario we switch to our native JSCH implementation to Camel-Ftp implementation to connect to SFTP server.
Server Folder: home/arpit/outbound/
File Name: myDailyReport.csv
Older implementation using native JSCH code - we used to first perform - channel.cd("home/arpit/outbound") and then channel.put("myDailyReport.csv").
New Implementation we are using stepwise = false. The reason why we used 'stepwise = false' because all our available SFTP server failed on CD operation.
QUESTION: Is there some flag which does complete directory CD (rather stepwise) and then do PUT?
Regards,
Arpit.
Reason: We see error [1] and [2] in the logs for ONE specific SFTP Server
----------------------------------------------------------------------------------------
[1] org.apache.camel.component.file.GenericFileOperationFailedException: Cannot store file: home/arpit/outbound/myDailyReport.csv
[2] Caused by: 2: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2833)