We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a56db commit bf85e75Copy full SHA for bf85e75
zipp/__init__.py
@@ -88,6 +88,11 @@ class CompleteDirs(InitializedState, zipfile.ZipFile):
88
"""
89
A ZipFile subclass that ensures that implied directories
90
are always included in the namelist.
91
+
92
+ >>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt']))
93
+ ['foo/', 'foo/bar/']
94
+ >>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt', 'foo/bar/']))
95
+ ['foo/']
96
97
98
@staticmethod
0 commit comments