""" extfslib is a library which contains Archive class to support writing extfs plugins for Midnight Commander. Tested against python 3.6 and mc 4.8.22 Changelog: 2.0 Switch to python3 1.1 Added item pattern, and common git/uid attrs 1.0 Initial release Author: Roman 'gryf' Dobosz Date: 2019-06-30 Version: 2.0 Licence: BSD """ import argparse import os import sys import re from subprocess import check_output, CalledProcessError class Archive(object): """Archive handle. Provides interface to MC's extfs subsystem""" LINE_PAT = re.compile(b"^(?P)\s" b"(?P)\s" b"(?P)\s" b"(?P)\s" b"(?P)\s+" b"(?P