be less picky about tar directories
This commit is contained in:
parent
67aee6e39d
commit
dac4809c06
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)
|
||||
def _list(self):
|
||||
for ti in self.tar:
|
||||
if ti.name.endswith('/'):
|
||||
yield ti.name[:-1]
|
||||
if ti.name.endswith('/smaps'):
|
||||
d,f = ti.name.split('/')
|
||||
yield d
|
||||
def _read(self, f):
|
||||
return self.tar.extractfile(f).read()
|
||||
def _readlines(self, f):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue