#!/usr/bin/env python3 """ Read only, Amiga LZX[1] archiver Virtual filesystem executive for Midnight Commander. Tested against python 3.6, unlzx[1] 1.1 and mc 4.8.22 [1] ftp://us.aminet.net/pub/aminet/misc/unix/unlzx.c.gz.readme Changelog: 1.2 Use python3 1.1 Moved common code into extfslib library 1.0 Initial release Author: Roman 'gryf' Dobosz Date: 2019-06-30 Version: 1.2 Licence: BSD """ import os import sys import re import shutil from subprocess import call, CalledProcessError from tempfile import mkdtemp, mkstemp from extfslib import Archive, parse_args class ULzx(Archive): """Archive handle. Provides interface to MC's extfs subsystem""" LINE_PAT = re.compile(b"^\s+(?P\d+)\s+" b"((n/a)|\d+)\s" b"(?P