diff options
author | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-07-10 12:48:25 +0000 |
---|---|---|
committer | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-07-10 12:48:25 +0000 |
commit | a7365283fdb0b8501c43c4fc1e4ca24b79c0e7eb (patch) | |
tree | acd6f7e5c850d4b70e84744fcd114b2c985e08f4 /fs/zipfs.py | |
parent | 5558aa59975d06d62bd11b59109f54fa7d126369 (diff) | |
download | pyfilesystem-a7365283fdb0b8501c43c4fc1e4ca24b79c0e7eb.tar.gz |
Fix for absolute paths in getcontents function Issue #15
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@377 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/zipfs.py')
-rw-r--r-- | fs/zipfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zipfs.py b/fs/zipfs.py index 5ea4f73..c235e96 100644 --- a/fs/zipfs.py +++ b/fs/zipfs.py @@ -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: |