Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/zipfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def from_file(cls, filename, arcname=None, *, strict_timestamps=True):

def is_dir(self):
"""Return True if this archive member is a directory."""
return self.filename.endswith('/')
return self.filename.endswith('/') or self.filename.endswith('\\')


# ZIP encryption uses the CRC32 one-byte primitive for scrambling some
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix extraction of zip files created on Windows