summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-12 22:36:11 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-12 22:36:11 (GMT)
commitaeeda5b276e26eafa8c1e8fa8af08c0af7d7f34c (patch)
treec611efab1c4929f41edfeef7d22c572188460993 /Tools
parent2e4c899e2d28f2acbd62f7b1353dd96df803d911 (diff)
downloadcpython-aeeda5b276e26eafa8c1e8fa8af08c0af7d7f34c.zip
cpython-aeeda5b276e26eafa8c1e8fa8af08c0af7d7f34c.tar.gz
cpython-aeeda5b276e26eafa8c1e8fa8af08c0af7d7f34c.tar.bz2
Support filenames with spaces in their names (for non-Mac ftp servers).
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!
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/ftpmirror.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py
index 123f479..d546f33 100755
--- a/Tools/scripts/ftpmirror.py
+++ b/Tools/scripts/ftpmirror.py
@@ -141,8 +141,8 @@ def mirrorsubdir(f, localdir):
print 'Skipping symbolic link %s -> %s' % \
(words[-3], words[-1])
continue
- filename = words[-1]
- infostuff = words[-5:-1]
+ filename = string.join(words[8:])
+ infostuff = words[5:]
mode = words[0]
skip = 0
for pat in skippats: