Sidebar

Overwrite file using FTP function in custom script

0 votes
192 views
asked Oct 19, 2022 by satya-kiran-k-9137 (200 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, 2022 by brandon-w-8204 (33,270 points)
...