INNER CODE UNIT · Python
List
DaemonEngine/Daemon · external_deps/cygtar.py:320
def List(self):
"""List the set of objects in the tarball."""
for tarinfo in self.tar:
self.__DumpInfo(tarinfo)
def Close(self):
self.tar.close()
def Main(args):
parser = optparse.OptionParser()
# Modes
parser.add_option('-c', '--create', help='Create a tarball.',
action='store_const', const='c', dest='action', default='')
parser.add_option('-x', '--extract', help='Extract a tarball.',
action='store_const', const='x', dest='action')
parser.add_option('-t', '--list', help='List sources in tarball.',
action='store_const', const='t', dest='action')