be less picky about tar directories
This commit is contained in:
parent
b78ae87d6b
commit
3f0ffa8368
1 changed files with 3 additions and 2 deletions
5
smem
5
smem
|
|
@ -60,8 +60,9 @@ class tardata(procdata):
|
||||||
self.tar = tarfile.open(source)
|
self.tar = tarfile.open(source)
|
||||||
def _list(self):
|
def _list(self):
|
||||||
for ti in self.tar:
|
for ti in self.tar:
|
||||||
if ti.name.endswith('/'):
|
if ti.name.endswith('/smaps'):
|
||||||
yield ti.name[:-1]
|
d,f = ti.name.split('/')
|
||||||
|
yield d
|
||||||
def _read(self, f):
|
def _read(self, f):
|
||||||
return self.tar.extractfile(f).read()
|
return self.tar.extractfile(f).read()
|
||||||
def _readlines(self, f):
|
def _readlines(self, f):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue