openpack/editor.py
def pack_dir_cmd():
	'List the contents of a subdirectory of a zipfile'
	parser = argparse.ArgumentParser(description=inspect.getdoc(part_edit_cmd))
	parser.add_argument(
		'path',
		help=(
			'Path to list (including path to zip file, '
			'i.e. ./file.zipx or ./file.zipx/subdir)'
		),
	)
	args = parser.parse_args()
	for item, is_file in sorted(list_contents(args.path)):
		prefix = 'd ' if not is_file else '  '
		msg = prefix + item
		print(msg)
def pack_dir_cmd():
	'List the contents of a subdirectory of a zipfile'
	parser = argparse.ArgumentParser(description=inspect.getdoc(part_edit_cmd))
	parser.add_argument(
		'path',
		help=(
			'Path to list (including path to zip file, '
			'i.e. ./file.zipx or ./file.zipx/subdir)'
		),
	)
	args = parser.parse_args()
	for item, is_file in sorted(list_contents(args.path)):
		prefix = 'd ' if not is_file else '  '
		msg = prefix + item
		print(msg)
def pack_dir_cmd ( ) : parser = argparse . ArgumentParser ( description = inspect . getdoc ( part_edit_cmd ) ) parser . add_argument ( 'path' , help = ( 'Path to list (including path to zip file, ' 'i.e. ./file.zipx or ./file.zipx/subdir)' ) , ) args = parser . parse_args ( ) for item , is_file in sorted ( list_contents ( args . path ) ) : prefix = 'd ' if not is_file else '  ' msg = prefix + item print ( msg )
List the contents of a subdirectory of a zipfile
List the contents of a subdirectory of a zipfile