[New-bugs-announce] [issue6609] zipfile: WindowsError [267] The directory name is invalid

Sridhar Ratnakumar report at bugs.python.org
Fri Jul 31 02:12:50 CEST 2009


New submission from Sridhar Ratnakumar <sridharr at activestate.com>:

The following exception occured when I tried to extract http://
sourceforge.net/projects/slut/files/slut/slut-0.9.0/slut-0.9.0.zip/
download using the zipfile module on Windows XP.

C:\\HOME\\as\\pypm-infinitude\\scratch\\b\\slut-0.9.0.zip.work is 1) 
current working directory 2) directory where the zip file was stored, 
3) directory where the extraction is to happen.

  [...]
    f.extractall()
  File "C:\Python26\lib\zipfile.py", line 935, in extractall
    self.extract(zipinfo, path, pwd)
  File "C:\Python26\lib\zipfile.py", line 923, in extract
    return self._extract_member(member, path, pwd)
  File "C:\Python26\lib\zipfile.py", line 957, in _extract_member
    os.makedirs(upperdirs)
  File "C:\Python26\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 267] The directory name is invalid: 'C:\\HOME\\as\
\pypm-infinitude\\scratch\\b\\slut-0.9.0.zip.work\\slut-0.9\\aux'

----------
components: Library (Lib), Windows
messages: 91116
nosy: srid
severity: normal
status: open
title: zipfile: WindowsError [267] The directory name is invalid
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6609>
_______________________________________


More information about the New-bugs-announce mailing list