File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ The module defines the following items:
7878 of the last modification to the file; the fields are described in section
7979 :ref: `zipinfo-objects `.
8080
81-
8281.. function :: is_zipfile(filename)
8382
8483 Returns ``True `` if *filename * is a valid ZIP file based on its magic number,
@@ -406,6 +405,11 @@ ZipFile Objects
406405 If ``arcname `` (or ``filename ``, if ``arcname `` is not given) contains a null
407406 byte, the name of the file in the archive will be truncated at the null byte.
408407
408+ .. note ::
409+
410+ A leading slash in the filename may lead to the archive being impossible to
411+ open in some zip programs on Windows systems.
412+
409413 .. versionchanged :: 3.6
410414 Calling :meth: `write ` on a ZipFile created with mode ``'r' `` or
411415 a closed ZipFile will raise a :exc: `ValueError `. Previously,
Original file line number Diff line number Diff line change 1+ Added a warning to :mod: `zipfile ` docs: filename arg with a leading slash may cause archive to
2+ be un-openable on Windows systems.
You can’t perform that action at this time.
0 commit comments