command-line arguments could be employed to universally configure all the other download parameters and optionstoobut because of python' simplicity and lack of compile/link stepschanging settings in the text of python scripts is usually just as easy as typing words on command line to check for version skew after batch of downloads and uploadsyou can run the diffall script we wrote in example - for instancei find files that have diverged over time due to updates on multiple platforms by comparing the download to local copy of my website using shell command line such as :\pp \internet \ftp\system\filetools\diffall py mirror\test :\web sites\public_html see for more details on this tooland file diffall out txt in the diffs subdirectory of the examples distribution for sample runits text file differences stem from either final line newline characters or newline differences reflecting binary transfers that windows fc commands and ftp servers do not notice uploading site directories uploading full directory is symmetric to downloadingit' mostly matter of swapping the local and remote machines and operations in the program we just met the script in example - uses ftp to copy all files in directory on the local machine on which it runs up to directory on remote machine really use this scripttoomost often to upload all of the files maintained on my laptop pc to my isp account in one fell swoop also sometimes use it to copy my site from my pc to mirror machine or from the mirror machine back to my isp because this script runs on any computer with python and socketsit happily transfers directory from any machine on the net to any machine running an ftp server simply change the initial setting in this module as appropriate for the transfer you have in mind example - pp \internet\ftp\mirror\uploadflat py #!/bin/env python ""#############################################################################use ftp to upload all files from one local dir to remote site/directorye run me to copy web/ftp site' files from your pc to your ispassumes flat directory uploaduploadall py does nested directories see downloadflat py comments for more notesthis script is symmetric #############################################################################""import ossysftplib from getpass import getpass from mimetypes import guess_type client-side scripting