
    y9>i=                     6   d Z 	 ddZ	 ddZexZxZxZxZZexZxZ	xZ
xZxZxZxZxZxZxZxZZddZexZxZxZxZxZxZxZxZxZxZxZxZ xZ!xZ"xZ#xZ$Z%ddZ&e&xZ'xZ(xZ)xZ*xZ+xZ,xZ-xZ.xZ/xZ0xZ1xZ2xZ3xZ4xZ5xZ6Z7	 ddZ8	 ddZ9	 ddZ:	 dd	Z;	 dd
Z<	 ddZ=dS )z$Archive commands for the 7z program.Nc                     |dg}|s|                     d           |r|                     d|            n|s|                     d           |                    dd| d| g           |S )zExtract a 7z archive.x-y-p-p-z-aou-o--appendextendarchivecompressioncmd	verbosityinteractiveoutdirpasswordcmdlists           W/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/patoolib/programs/p7zip.py
extract_7zr      s     CjG t H'''' uNNFMMM49:::N    c                     |dg}|s|                     d           |r|                     d|            n|s|                     d           |                    d| d| g           |S )zExtract a singlefile archive (e.g. gzip or bzip2) with '7z e'.
    This makes sure a single file and no subdirectories are created,
    which would cause errors with patool repack.
    er   r   r   r   r   r	   r   s           r   extract_7z_singlefiler   !   s     CjG t H'''' uNNMMM41222Nr   c                     |dg}|s|                     d           |r|                     d|            n|s|                     d           |                    d| g           |S )zList a 7z archive.lr   r   r   r   r	   r   r   r   r   r   r   r   s          r   list_7zr   <   }    CjG t H'''' uNND'?###Nr   c                     |dg}|s|                     d           |r|                     d|            n|s|                     d           |                    d| g           |S )zTest a 7z archive.tr   r   r   r   r	   r   s          r   test_7zr"   P   r   r   c                     |dg}|s|                     d           |r-|                     d|            |                     d           |                    ddd| g           |                    |           |S )zCreate a 7z archive.ar   r   z-mhe=onz-t7zz-saer   r	   r   r   r   r   r   	filenamesr   r   s           r   	create_7zr'   d   s     CjG t "H'''y!!!NNFFD'2333NN9Nr   c                     |dg}|s|                     d           |r|                     d|            |                    dd| g           |                    |           |S )zCreate a ZIP archive.r$   r   r   z-tzipr   r	   r%   s           r   
create_zipr)   t   w     CjG t (H'''NNGT7+,,,NN9Nr   c                     |dg}|s|                     d           |r|                     d|            |                    dd| g           |                    |           |S )zCreate an XZ archive.r$   r   r   z-txzr   r	   r%   s           r   	create_xzr,      sw     CjG t (H'''NNFD'*+++NN9Nr   c                     |dg}|s|                     d           |r|                     d|            |                    dd| g           |                    |           |S )zCreate a GZIP archive.r$   r   r   z-tgzipr   r	   r%   s           r   create_gzipr.      sw     CjG t (H'''NNHdG,---NN9Nr   c                     |dg}|s|                     d           |r|                     d|            |                    dd| g           |                    |           |S )zCreate a BZIP2 archive.r$   r   r   z-tbzip2r   r	   r%   s           r   create_bzip2r0      sw     CjG t (H'''NNItW-...NN9Nr   c                     |dg}|s|                     d           |r|                     d|            |                    dd| g           |                    |           |S )zCreate a WIM archive.r$   r   r   z-twimr   r	   r%   s           r   
create_wimr2      r*   r   )N)>__doc__r   r   extract_bzip2extract_gzipextract_compress
extract_xzextract_lzmaextract_zipextract_rarextract_cabextract_chmextract_arjextract_cpioextract_rpmextract_debextract_isoextract_udfextract_vhdextract_wimr   
list_bzip2	list_gziplist_ziplist_compresslist_rarlist_cablist_chmlist_arj	list_cpiolist_rpmlist_deblist_isolist_xz	list_lzmalist_udflist_vhdlist_wimr"   
test_bzip2	test_gziptest_ziptest_compresstest_rartest_cabtest_chmtest_arj	test_cpiotest_rpmtest_debtest_isotest_xz	test_lzmatest_udftest_vhdtest_wimr'   r)   r,   r.   r0   r2    r   r   <module>rh      s   + * IM     IM   &   / *| KUU Uk UK U+ U Ul UUUU +U.9K
 
 
 
" 	
 Y  M H x ( #&.18;DGO 
 
 
 
" 	
 Y  M H x ( #&.18;DGO  LP   " LP    LP    LP    LP    LP     r   