How can we receive acknowledgement of file transfer using "SFTP"

HI Guys,
In one of my project I am transfer a csv file from local PC to remote PC using SFTP.
Since frequency of file transfer is more (every 30 sec) many times I am seeing loss of data. So, I want to ensure using some acknowledge bit after saving file on remote side before start of next file transfer.
Please suggest !

Hi, Welcome to Node-RED. I don't think we can help you if you don't tell us how you run SFTP nor provide any information about what you have tried so far (code or screen shots of flow) and what happened (logs, error messages, etc).

..not quite clear where the problem is.
STFP over TCP normally will ensure, that the file is transfered properly and intact, when the transfer command returns with an OK.
With a high latency/low bandwidth and low availability of a connection and also when the receiver side need to read the file first, before the next file gets sent, you could introduce some kind of semaphore file scheme.

Like:

  • send DAT file first (data.csv)
  • send SEM-file second (data.csv.OK)
  • receiver side has to read the data file only when SEM file is there and then delete the SEM file afterwards
  • send the next data file iteration only when SEM file has been deleted by the remote side.