Sto usando il modulo ftplib per collegarmi al server FTP e utilizzo le
funzioni retrbinary e storbinary per fare il download e l'upload dei files.
Il problema sta nel fatto che la funzione retrbinary accetta una
funzione di callback che potrei usare per far avanzare la progress bar
ma la funzione storbinary non ha funzioni di callback.

L'unica รจ usare ntransfercmd() e mandare manualmente i dati a blocchi.

Ti ho uploadato un esempio tratto dal libro Python network programming:

http://dpaste.com/hold/11234/

--
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a