Sidebar

Overwrite file using FTP function in custom script

0 votes
46 views
asked Oct 19 by satya-kiran-k-9137 (140 points)
Can we overwrite the files using qie.writeSFTPFile function with same file name  similar to the in built FTP configuration setup in destination node

1 Answer

0 votes

The qie.writeSFTPFile allows you to pass parameters to it.

example with the override/overwrite option: 

qie.writeSFTPFile('host', port, 'path', binary, passive, 'fileExist=Override', 'userName', 'password', data);

A list of these parameters are found at https://camel.apache.org/components/3.18.x/ftp-component.html

 

answered Oct 19 by brandon-w-8204 (31,300 points)
...