<div class="gmail_quote">2011/7/13 Freeze NorthPole <span dir="ltr"><<a href="mailto:freeze782@gmail.com">freeze782@gmail.com</a>><br></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

conoscete qualche comando più opportuno per fare in modo di ottenere un elenco dei file sul server ?<br></blockquote><div><br></div><div><a href="http://stackoverflow.com/questions/111954/using-pythons-ftplib-to-get-a-directory-listing-portably">http://stackoverflow.com/questions/111954/using-pythons-ftplib-to-get-a-directory-listing-portably</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">oppure esiste qualche libreria di python che mi permette di fare il confronto dei file sul pc con quelli sul server?<br>

</blockquote><div><br></div><div>Se la directory fosse "mappabile" via rete potresti usare <a href="http://docs.python.org/library/filecmp.html">http://docs.python.org/library/filecmp.html</a></div><div><br></div>

<div>Siccome la tua è una directory remota cui accedi via ftp, dovrai fare un po' di lavoro da solo, magari leggendo il sorgente di lib/filecmp.py oppure guardare qualche risposta simile:</div><div><a href="http://stackoverflow.com/questions/5021838/how-to-compare-directories-to-determine-which-files-have-changed">http://stackoverflow.com/questions/5021838/how-to-compare-directories-to-determine-which-files-have-changed</a></div>

<div><a href="http://stackoverflow.com/questions/4187564/recursive-dircmp-compare-two-directories-to-ensure-they-have-the-same-files-and">http://stackoverflow.com/questions/4187564/recursive-dircmp-compare-two-directories-to-ensure-they-have-the-same-files-and</a></div>

<div><br></div><div>Ma la cosa migliore in assoluto è usare google... :-)</div><div><br>Ciao.</div><div>Marco.</div><div><br></div></div>-- <br><div><div><div><div><a href="http://beri.it/i-miei-libri/" target="_blank">http://beri.it/i-miei-libri/</a> - Qualche libro...</div>

<div><a href="http://stacktrace.it/" target="_blank">http://stacktrace.it</a> - Aperiodico di resistenza informatica</div><div><a href="http://thinkcode.tv/gratis" target="_blank">http://thinkcode.tv/gratis</a> - Capire in 15 minuti cosa può fare Python</div>

</div></div></div><br>