This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author apolkosnik
Recipients NewerCookie, alanmcintyre, amaury.forgeotdarc, apolkosnik, chuck, ronaldoussoren, serhiy.storchaka, terry.reedy
Date 2014-01-23.17:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390499951.8.0.741239910213.issue6839@psf.upfronthosting.co.za>
In-reply-to
Content
I'm in a similar situation, my test file raises this:

File name in directory "windows\TEMP\\test123.txt" and header "C:\windows\TEMP\\test123.txt" differ.

It turns out that I can't find any cross platform procedures for processing the paths between the different platforms. And there are other things like doing it in portable way; os.path.split() nor os.path.basename() won't touch windows paths on un*x, etc...

So, I'd like to propose an easy way, just allow the process to extract the files (and print a warning message) rather that just raising an exception (raise BadZipfile,...) and stopping the extraction altogether.
History
Date User Action Args
2014-01-23 17:59:11apolkosniksetrecipients: + apolkosnik, terry.reedy, ronaldoussoren, amaury.forgeotdarc, alanmcintyre, NewerCookie, chuck, serhiy.storchaka
2014-01-23 17:59:11apolkosniksetmessageid: <1390499951.8.0.741239910213.issue6839@psf.upfronthosting.co.za>
2014-01-23 17:59:11apolkosniklinkissue6839 messages
2014-01-23 17:59:11apolkosnikcreate