[issue20912] [zipfile.py]: Make zip directory attributes more friendly for MS-Windows

Vitaly Murashev report at bugs.python.org
Thu Mar 13 17:44:22 CET 2014


New submission from Vitaly Murashev:

When I use 'zip' command-line tool on my Ubuntu 10.04 to pack a directory in zip-archive, it internally assigns '0x41ed0010' attributes for it.

0x41ed0010 = 0x41ed << 0xfff + 0x0010

Where:
  0x41ed - unix attributes (40755)
  0x0010 - means # MS-DOS directory flag

At the same time zipfile.py doesn't provide MS-DOS directory flag.
It seems be a good idea to do it.
Patch suggested over 3.3.3 code-base.

----------
components: Library (Lib)
files: zipfile.py.diff
keywords: patch
messages: 213416
nosy: vmurashev
priority: normal
severity: normal
status: open
title: [zipfile.py]: Make zip directory attributes more friendly for MS-Windows
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34399/zipfile.py.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20912>
_______________________________________


More information about the Python-bugs-list mailing list