Merge pull request #85 from mashabow/fix-open-zip
[filesystem] Fix error on opening zip in Python 2
This commit is contained in:
commit
18fb0459de
@ -75,7 +75,7 @@ class FileSystem(object):
|
|||||||
path = ZipFS(
|
path = ZipFS(
|
||||||
path, write=True if mode == 'w' else False, encoding="utf8")
|
path, write=True if mode == 'w' else False, encoding="utf8")
|
||||||
roots = [
|
roots = [
|
||||||
p for p in path.listdir("")
|
p for p in path.listdir(u"")
|
||||||
# exclude macOS metadata contained in zip file
|
# exclude macOS metadata contained in zip file
|
||||||
if path.isdir(p) and p != "__MACOSX"
|
if path.isdir(p) and p != "__MACOSX"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user