Don't leave trailing slashes on the end of directory names
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user