summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnZip.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/UnZip.py')
-rw-r--r--module/plugins/internal/UnZip.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/internal/UnZip.py b/module/plugins/internal/UnZip.py
index 50ab80da3..2870dc4eb 100644
--- a/module/plugins/internal/UnZip.py
+++ b/module/plugins/internal/UnZip.py
@@ -36,7 +36,8 @@ class UnZip(Extractor):
def list(self, password=None):
with zipfile.ZipFile(self.target, 'r') as z:
z.setpassword(password)
- return z.namelist()
+ self.files = z.namelist()
+ return self.files
def verify(self, password=None):
@@ -63,6 +64,8 @@ class UnZip(Extractor):
with zipfile.ZipFile(self.target, 'r') as z:
z.setpassword(password)
z.extractall(self.dest)
+ self.files = z.namelist()
+ return self.files
except RuntimeError, e:
raise ArchiveError(e)