diff --git a/patoolib/programs/xz.py b/patoolib/programs/xz.py index ed01282..3e161dc 100644 --- a/patoolib/programs/xz.py +++ b/patoolib/programs/xz.py @@ -21,3 +21,12 @@ from patoolib.programs import extract_singlefile_standard, \ extract_xz = extract_singlefile_standard test_xz = test_singlefile_standard create_xz = create_singlefile_standard + +def list_xz (archive, encoding, cmd, **kwargs): + """List a XZ archive.""" + cmdlist = [cmd] + cmdlist.append('-l') + if kwargs['verbose']: + cmdlist.append('-v') + cmdlist.append(archive) + return cmdlist