'Print a table of contents to sys.stdout. If `verbose\' is False, only
the names of the members are printed. If it is True, an `ls -l\'-like
output is produced.'

def list(self, verbose=True):

    self._check()
    for tarinfo in self:
        if verbose:
            print filemode(tarinfo.mode),
            print ('%s/%s' % ((tarinfo.uname or tarinfo.uid), (tarinfo.gname or tarinfo.gid))),
            if (tarinfo.ischr() or tarinfo.isblk()):
                print ('%10s' % ('%d,%d' % (tarinfo.devmajor, tarinfo.devminor))),
            else:
                print ('%10d' % tarinfo.size),
            print ('%d-%02d-%02d    %02d:%02d:%02d' % time.localtime(tarinfo.mtime)[:6]),
        print (tarinfo.name + ('/' if tarinfo.isdir() else '')),
        if verbose:
            if tarinfo.issym():
                print '->', tarinfo.linkname,
            if tarinfo.islnk():
                print 'link    to', tarinfo.linkname,
        print
