I have a poller running on a certain directory every 35s. The files are placed in this directory through a SFTP server. The problem is whenever the polling conflicts with the time when a file is being copied. It picks the incomplete file also which is not yet copied completely.
Can we know the status of a file whether it is in copying mode or copied mode?
Have the poller note file sizes. If the size did not change from one round to the next, the file is done downloading.
Can you influence the SFTP server? Can it create a marker file once the download is complete (e.g. '
.thisIsAFile.doc.done')?