Message208970
| 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. |
|