[EMAIL PROTECTED] wrote: [snip..] > results. Now, I was thinking today, I'd really like to create a program that > can go to a specific directory and upload all the files in the directory to a > specific url for backup purposes, and I have the feeling that the python > implementation would be ruthlessly small and efficient, like the > above....anyone who could point me in the right direction as to how to > actually > do it?
Upload to a URL *sounds* like you want to do the upload by http rather than ftp. In this case you can do it with a Python CGI on the server and a script on the client that communicates with the CGI. When voidspace is back up you can find a pair of scripts that do just that : http://www.voidspace.org.uk/python/cgi.shtml#upload Hint - filelist = [os.path.join(directory, entry) for entry in os.listdir(directory)] Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list