Commit aeeda5b2 authored by Guido van Rossum's avatar Guido van Rossum

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!
parent 2e4c899e
...@@ -141,8 +141,8 @@ def mirrorsubdir(f, localdir): ...@@ -141,8 +141,8 @@ def mirrorsubdir(f, localdir):
print 'Skipping symbolic link %s -> %s' % \ print 'Skipping symbolic link %s -> %s' % \
(words[-3], words[-1]) (words[-3], words[-1])
continue continue
filename = words[-1] filename = string.join(words[8:])
infostuff = words[-5:-1] infostuff = words[5:]
mode = words[0] mode = words[0]
skip = 0 skip = 0
for pat in skippats: for pat in skippats:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment