Re: [Tutor] copy files + directory tree via ftp

2007-09-26 Thread Kent Johnson
Nelson Kusuma wrote: > Hello > > I have a problem when copy files and directory tree in > ftp, scripts in here only copy one file: To transfer an entire directory with ftplib you will have to read the local directory with os.listdir() and loop to send the files. There are a few higher-level mod

[Tutor] copy files + directory tree via ftp

2007-09-26 Thread Nelson Kusuma
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:/PARAM