summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnTar.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/UnTar.py')
-rw-r--r--module/plugins/internal/UnTar.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/internal/UnTar.py b/module/plugins/internal/UnTar.py
index 7cc8516ae..4e498c223 100644
--- a/module/plugins/internal/UnTar.py
+++ b/module/plugins/internal/UnTar.py
@@ -38,7 +38,8 @@ class UnTar(Extractor):
def list(self, password=None):
with tarfile.open(self.target) as t:
- return t.getnames()
+ self.files = t.getnames()
+ return self.files
def verify(self, password=None):
@@ -56,11 +57,13 @@ class UnTar(Extractor):
def extract(self, password=None):
- self.verify()
+ self.verify(password)
try:
with tarfile.open(self.target, errorlevel=2) as t:
t.extractall(self.dest)
+ self.files = t.getnames()
+ return self.files
except tarfile.ExtractError, e:
self.log_warning(e)