wolverine2k / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

Deliverd Zip file will not extract in Windows Explorer #188

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download crunchy1.0alpha1.zip
2. Open it by double-clicking
3. Select "extract all files"

What is the expected output? What do you see instead?

This should unzip the distribution, but for some reason each directory
appears to be shadowed with a zero-length file of the same name.

What version of the product are you using? On what operating system?

1.0alpha1 on Windows Vista Business SP1

Please provide any additional information below and use tags to categorise
your report. We will do our best to get back to you ASAP.

Workaround is to tell windows to skip duplicates, but I don't yet know
whether this results in a usable distribution.

Original issue reported on code.google.com by holden...@gmail.com on 2 Dec 2008 at 6:17

GoogleCodeExporter commented 8 years ago
[sorry about the typo in the subject line]

Original comment by holden...@gmail.com on 2 Dec 2008 at 6:17

GoogleCodeExporter commented 8 years ago
My workaround isn't a workaround: the shadowed subdirectories don't appear, 
meaning I
don't have a working installation :(

Original comment by holden...@gmail.com on 2 Dec 2008 at 6:31

GoogleCodeExporter commented 8 years ago
Problem acknowledged and reproduced on a different version of Vista.  Looking 
for a
solution.

Original comment by andre.ro...@gmail.com on 2 Dec 2008 at 11:34

GoogleCodeExporter commented 8 years ago
New version (zipped with a different tool) uploaded which should work.  A
confirmation would be appreciated.

Original comment by andre.ro...@gmail.com on 2 Dec 2008 at 11:48

GoogleCodeExporter commented 8 years ago
Since this new file has been downloaded 6 times and no further issues have been
entered, I will consider this bug fixed.

Original comment by andre.ro...@gmail.com on 5 Dec 2008 at 2:25

GoogleCodeExporter commented 8 years ago
I am afraid this issue is not fixed by the new file, which is twice as large as 
its
predecessor. Further, I am not sure this is a Vista issue: the original problem
seemed to be that directories were being included in the zipfile contents as 
regular
file.

The current download does indeed unzip correctly under Vista, but as well as the
crunchy directory it contains a crunchy1.0alpha1.zip file, which appears to be 
the
original download. This probably accounts for the increased fiel size.

I took the original file and used the following program to extract its contents:

import os
def md(path):
  if os.path.exists(path):
    return
  else:
    print "Creating directory", path
    os.makedirs(path)

from zipfile import ZipFile
z = ZipFile("crunchy1.0alpha1.zip")                             
for zz in z.infolist():
  if zz.file_size:
    print "Unpacking", zz.filename
    d, f = os.path.split(zz.filename)
    md(d)
    fil = z.read(zz.filename)
    ofil = open(zz.filename, 'w')
    ofil.write(fil)
    ofil.close()

Original comment by holden...@gmail.com on 8 Dec 2008 at 1:20

GoogleCodeExporter commented 8 years ago
Thanks for the comment and the workaround; it worked ok when I tested it and I 
had
not noticed the larger size.

Reopening the issue - won't have time to look at it for a few days 
unfortunately.

Original comment by andre.ro...@gmail.com on 8 Dec 2008 at 2:39

GoogleCodeExporter commented 8 years ago
This is an issue with packaging the old version - should not be kept as a valid 
issue
for the 1.0 release.

Original comment by andre.ro...@gmail.com on 19 Aug 2009 at 9:54