Commit 8a504419 by willmcgugan

Fix for absolute paths in getcontents function Issue #15

parent 0234fb81
......@@ -153,7 +153,7 @@ class ZipFS(FS):
def getcontents(self, path):
if not self.exists(path):
raise ResourceNotFoundError(path)
path = normpath(path)
path = normpath(relpath(path))
try:
contents = self.zf.read(path.encode(self.encoding))
except KeyError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment