Kaydet (Commit) 578135a7 authored tarafından Faik Uygur's avatar Faik Uygur

* we should read a file without extracting it to somewhere

üst 43144be9
......@@ -308,6 +308,9 @@ class ArchiveZip(ArchiveBase):
""" Returns true if file_path is member of the zip archive"""
return file_path in self.zip_obj.namelist()
def read_file(self, file_path):
return self.zip_obj.read(file_path)
def unpack_file_cond(self, pred, target_dir, archive_root = ''):
"""Unpack/Extract files according to predicate function
pred: filename -> bool
......
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