Hello,
I have to create an automated service which looks in a SFTP folder for a specific file and if file exist, then download that file.
if file already there (before looking on SFTP) then it's working perfectly and download that file.
but Problem arises when trying to download the file from SFTP, and file is in uploading process by some other at that time.
So, My Question is , How can I know that file is fully uploaded before downloading or How can I prevent downloading if file is being upload
I have to create an automated service which looks in a SFTP folder for a specific file and if file exist, then download that file.
if file already there (before looking on SFTP) then it's working perfectly and download that file.
but Problem arises when trying to download the file from SFTP, and file is in uploading process by some other at that time.
So, My Question is , How can I know that file is fully uploaded before downloading or How can I prevent downloading if file is being upload