I have some code that looks something like this: from ftplib import FTP
ftp = FTP() # connect and login ftp.connect(server_name) ftp.login(user_name, password) cmd = "STOR %s" % filename #"ASCII transfer" l = open(filename) ftp.storlines(cmd, l) #"BIN transfer" l = open(filename, 'rb') ftp.storbinary(cmd, l) # close connection ftp.close() All the various methods on the ftp object should be called in try/except blocks, since they can potentially raise exceptions. Grig -- http://mail.python.org/mailman/listinfo/python-list