summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/ftpmirror.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #430754: Makes ftpmirror.py .netrc awareMartin v. Löwis2001-06-071-3/+10
|
* Whitespace normalization.Tim Peters2001-01-171-334/+334
|
* Allow this script to act like a module by only calling main() ifBarry Warsaw2000-09-161-1/+3
| | | | __name__ == '__main__'. Closes SF bug #110844.
* Fix by Sjoerd Mullender to support symbolic links and make a backup ofGuido van Rossum1998-06-291-56/+80
| | | | | | | | .mirrorinfo. Fix by me to call string.lstrip(filename) to cope with a bug in strop.strip() in Python 1.4. Additionally, I changed all print statements that print filenames etc. to put them in backquotes so that it will be more obvious when there's a funny character on one of them (such as a space...).
* OK, here's a different way to implement the same thing -- this versionGuido van Rossum1998-05-121-6/+6
| | | | also supports filenames with multiple spaces in their name :-)
* Support filenames with spaces in their names (for non-Mac ftp servers).Guido van Rossum1998-05-121-2/+2
| | | | | | | | | | This patch must hold the world record for living in my inbox: From: John Ehresman <jehresma@dsg.harvard.edu> Date: Wed, 23 Aug 1995 16:07:11 -0400 He provided a fix for the version that comes with Python 1.3: ftpmirror.py revision 1.1... And it was still relevant!
* Dangerous feature added: when removing local files (i.e., only when -rGuido van Rossum1998-01-041-25/+50
| | | | | | is used), do a recursive delete. Use -r with even more caution! Also changed usage message into a doc string, added a comment or two, and rearranged a long line.
* Unlink before rename (for NT).Guido van Rossum1997-05-191-1/+5
|
* Open the output files with 'wb', not 'w'.Guido van Rossum1997-05-151-1/+1
|
* /usr/local/bin/python -> /usr/bin/env pythonGuido van Rossum1996-11-271-1/+1
|
* Fixed a bug: files that no longer exist remotely would never beGuido van Rossum1996-11-141-0/+24
| | | | | | | | | removed from .mirrorinfo. Now they are (even if -r is not specified -- the files are not removed, just their .mirrorinfo entry). Added a feature: the -s pattern option is also used to skip local files when removing (i.e. -r won't remove local files matching the -s patterns).
* Create files as temp file and move to real location only when complete.Guido van Rossum1996-04-091-7/+22
| | | | Added some try-except statements around listdir and mkdir operations.
* don't die on unreadable files etc.Guido van Rossum1996-02-051-6/+10
|
* added ftp mirror scriptGuido van Rossum1995-06-201-0/+299