Ziping files with python. Windows cant unzip
<p>I have this ziping script in python :</p>

<pre><code> def zipdir(self,path, ziph):
        # ziph is zipfile handle
        paths = os.listdir(path)
        for p in paths:
            p = os.path.join(path, p)  # Make the path relative
            if os.path.isfile(p):  # Recursive case
                ziph.write(p)  # Write the file to the zipfile



    #needs to be closed after use
    def createZipHandler(self,name):
        zipf = zipfile.ZipFile(name+'.zip', 'w')
        return zipf
</code></pre>

<p>The Plan is to call this class and create a zip which should be opened on windows maschines. When running this script on windows everything work fine. zip created and accessable. 
But when calling this in my code on a raspberry I cant open the zip on my windows maschine.</p>

<p>Does anybody know why? </p>

<p>Found the Problem. The zipping went fine. I send the zip over email and set a wrong header-element.</p>

python zip