file -public-classes htm_cmp_deepblue _vbtn_p gif file -public-classes html_cmp_deepblue _vbtn_p gif file -public-classes html_cmp_deepblue _vbtn gif directory exited directory exited lines omitted file priorclients html file public_classes htm file python_conf_ora gif file topics html done files and directories cleaned downloading remote trees it is possible to extend this remote tree-cleaner to also download remote tree with subdirectoriesrather than deletingas you walk the remote tree simply create local directory to match remote oneand download nondirectory files we'll leave this final step as suggested exercisethoughpartly because its dependence on the format produced by server directory listings makes it complex to be robust and partly because this use case is less common for me--in practicei am more likely to maintain site on my pc and upload to the server than to download tree if you do wish to experiment with recursive downloadthoughbe sure to consult the script tools\scripts\ftpmirror py in python' install or source tree for hints that script attempts to download remote directory tree by ftpand allows for various directory listing formats which we'll skip here in the interest of space for our purposesit' time to move on to the next protocol on our tour--internet email processing internet email some of the other most commonhigher-level internet protocols have to do with reading and sending email messagespop and imap for fetching email from serverssmtp for sending new messagesand other formalisms such as rfc for specifying email message content and format you don' normally need to know about such acronyms when using common email toolsbut internallyprograms like microsoft outlook and webmail systems generally talk to pop and smtp servers to do your bidding like ftpemail ultimately consists of formatted commands and byte streams shipped over sockets and ports (port for pop for smtpregardless of the nature of its content and attachmentsan email message is little more than string of bytes sent and received through sockets but also like ftppython has standard library modules to simplify all aspects of email processingprocessing internet email