[issue6609] zipfile: WindowsError [267] The directory name is invalid

2010-08-13 Thread Tim Golden

Tim Golden m...@timgolden.me.uk added the comment:

Closing as won't fix: this would be the same if you had any code which tried 
to do os.mkdir (aux). By way of comparison, Info-ZIP's UnZip returns 
checkdir error: aux exists but is not directory which actually seems less 
useful!

I don't believe it's the responsibility of the zipfile module (or tarfile or 
bz2 or any other) to silently reinterpret the names of files -- how would any 
code in the package expecting aux/code.c cope with the name change?

--
assignee:  - tim.golden
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6609] zipfile: WindowsError [267] The directory name is invalid

2010-08-06 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy: +tim.golden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-08-03 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

See also #481171.

--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-08-03 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

You're right, aux is a reserved name on Windows (like prn, con, and a 
few others). There is a way to force the OS to actually create such 
files, but not every tool can handle them correctly.

If the zip file is intended to be Windows-compatible, it should not use 
such names; ask the project developers.

--
nosy: +gagenellina

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-07-30 Thread Sridhar Ratnakumar

New submission from Sridhar Ratnakumar sridh...@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 rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-07-30 Thread Sridhar Ratnakumar

Sridhar Ratnakumar sridh...@activestate.com added the comment:

Shortly following this exception, I tried to create the directory myself

  C:\... mkdir slut-0.9\aux
  The directory name is invalid.

Curiously, I searched the internet for why a directory named 'aux' 
cannot be created anywhere on the Windows filesystem. The reason - this 
is a 'special' name: http://www.blindedbytech.com/2006/11/16/forbidden-
file-and-folder-names-on-windows/

However, does this mean one can never create a directory named by these 
special names? Apparently .. that is what I think is the case. I cannot 
even create a folder named 'aux' using Windows explorer!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-07-30 Thread Sridhar Ratnakumar

Sridhar Ratnakumar sridh...@activestate.com added the comment:

Let's keep this open as these sort of errors should ideally by wrapped 
under ZipError, no?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6609
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com