#! /usr/bin/env python """ Read only, Amiga LZX[1] archiver Virtual filesystem executive for Midnight Commander. Tested against python 2.7, unlzx[1] 1.1 and mc 4.8.7 [1] ftp://us.aminet.net/pub/aminet/misc/unix/unlzx.c.gz.readme Changelog: 1.1 Moved common code into extfslib library 1.0 Initial release Author: Roman 'gryf' Dobosz Date: 2013-05-12 Version: 1.1 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("^\s+(?P\d+)\s+" "((n/a)|\d+)\s" "(?P