Merge pull request #85 from mashabow/fix-open-zip

[filesystem] Fix error on opening zip in Python 2
This commit is contained in:
Cosimo Lupo 2017-08-02 10:51:12 +01:00 committed by GitHub
commit 18fb0459de

View File

@ -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"
] ]