From: Guido van Rossum Date: Tue, 12 May 1998 22:36:11 +0000 (+0000) Subject: Support filenames with spaces in their names (for non-Mac ftp servers). X-Git-Tag: v1.5.2a1~654 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeeda5b276e26eafa8c1e8fa8af08c0af7d7f34c;p=python 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 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! --- diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py index 123f479956..d546f33a43 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: