[Tutor] copy files + directory tree via ftp

Nelson Kusuma nelsonkusuma at yahoo.com
Wed Sep 26 12:11:38 CEST 2007


Hello

I have a problem when copy files and directory tree in
ftp, scripts in here only copy one file:
from ftplib import FTP
rootList = []
session = FTP()
session.connect('workstation', port=21)
session.login(user='saiki', passwd='saiki')
session.retrlines('LIST', rootList.append)
f=open('D:/PARAMS.LST','rb')
session.storbinary('STOR '+"af", f, 1024)
f.close()
session.close()

f anyone has any ideas I would appreciate it. Thank
you

Nelson


       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC


More information about the Tutor mailing list