Suppressing ZipFile duplication warning
See original GitHub issuePython’s ZipFile allows writing duplicate files and does this by default. When it writes a duplicate file, it raises a UserWarning
. This occurs for each file and is a bit noisy. As there doesn’t seem to be a standard way of solving this, would recommend that we simply suppress this warning. Combining this with a resolution to issue ( https://github.com/alimanfoo/zarr/issues/128 ), would ensure that deduplication already occurs so the warning is no longer relevant.
Edit: Added link to Python bug after the fact.
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (20 by maintainers)
Top Results From Across the Web
Suppressing ZipFile duplication warning · Issue #129 - GitHub
When it writes a duplicate file, it raises a UserWarning . This occurs for each file and is a bit noisy.
Read more >python zip file hit userwarning: Duplicate name - Stack Overflow
The duplicate name warning comes from the input directory files, of the same name, all being written to the same place of the...
Read more >Issue 2824: zipfile to handle duplicate files in archive
Once a duplicate is in the zip file, it is maintained in the listing of files, but deleting one of the entries using...
Read more >A complete guide for working with I/O streams and zip ...
The extracted archive may not have visible duplicate files, but the underlying file pointer might have duplicated information. Type zipfile list ...
Read more >Powershell - unzipping duplicate content into separate folder
I have a task of unzipping over 5k zipped files. The following command does this, however some of the zipped files have duplicate...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maybe this could be a method on the DirectoryStore class? Called to_zipfile() or archive() or something like that?
On Mon, 27 Feb 2017 at 21:06, jakirkham notifications@github.com wrote:
– Alistair Miles Head of Epidemiological Informatics Centre for Genomics and Global Health http://cggh.org The Wellcome Trust Centre for Human Genetics Roosevelt Drive Oxford OX3 7BN United Kingdom Email: alimanfoo@googlemail.com Web: http://purl.org/net/aliman Twitter: https://twitter.com/alimanfoo Tel: +44 (0)1865 287721
Thanks, sounds good.
On Wed, 18 Oct 2017 at 19:14, jakirkham notifications@github.com wrote:
– Alistair Miles Head of Epidemiological Informatics Centre for Genomics and Global Health http://cggh.org Big Data Institute Building Old Road Campus Roosevelt Drive Oxford OX3 7LF United Kingdom Phone: +44 (0)1865 743596 Email: alimanfoo@googlemail.com Web: http://a http://purl.org/net/alimanlimanfoo.github.io/ Twitter: https://twitter.com/alimanfoo