Lines Matching refs:archive
93 archive, output = args
95 if not os.path.exists(archive):
99 with open(archive) as f:
115 if archive.endswith('.zip'):
116 entries = IterateZip(archive)
117 elif archive.endswith('.tar.gz'):
118 entries = IterateTar(archive, 'gz')
119 elif archive.endswith('.tar.bz2'):
120 entries = IterateTar(archive, 'bz2')
122 raise ValueError(archive)
129 print "Extracting %s to %s" % (archive, output)