Wait for PUT completion.
I am transferring large files from a Windows Application in C# to a Linux machine using API to WinSCP.com. I have found that the requests to PUT return before the completion of writing the file on Linux. Is there a mechanism to wait until the file upload is completed? ( Sleep is not an acceptable solution. )