ftplib question
RunLevelZero
Aiwass333 at gmail.com
Fri Apr 7 11:18:08 EDT 2006
Well I am not too familiar with ftplib but I have done some minimal
work.
Example:
try:
server=FTP()
server.connect('ftp.mcafee.com', 21)
except:
print "Could not connect to server"
raw_input("Hit Enter to quit:")
sys.exit(0)
login = server.login('anonymous', 'foo at example.com')
workdir = server.cwd("/pub/datfiles/english") ## Set the current
directory
server.delete("*.*")
End Example:
I hope it helps
More information about the Python-list
mailing list