Don't leave trailing slashes on the end of directory names

This commit is contained in:
Ellwood Zwovic
2017-07-20 18:06:42 -07:00
parent c9ab544af6
commit e32c920368

View File

@@ -53,7 +53,7 @@ def filelist_from_zip(zippath: Path) -> list:
# Get all names which have no path separators (root level files)
# or have a single path separator at the end (root level directories).
if len(f.rstrip('/').split('/')) == 1:
rootlist.append(f)
rootlist.append(f.rstrip('/'))
return rootlist