How to make paramiko wait for transfer to finish?
<p>I've tried various ways to upload a file locally to a FTP, ncftpput was really slow compared to lftp so I switched.</p>

<p>but what I've noticed is my python script waits for ncftpput to finish but when using lftp, it just uploads the file to the FTP and it continues on with the script..</p>

<p>I am using paramiko to SSH into my web server and uploading a file to another FTP.</p>

<p>Is there any way to make it 'wait'? I dont want to use sleep because file sizes are going to vary and its either waiting too long for a small file or not waiting long enough for a big file.</p>

<p>Any ideas? or alternatives to lftp/ncftpput?</p>
