
    y9>i$	                     X    d Z ddlZddlmZ d Z	 d
dZd
dZd
dZ	 d
d	ZeZ	eZ
eZeZdS )z%Archive commands for the arc program.    N   PatoolErrorc                 D    || S d|v rt          d          | d| z  } | S )z)Check password and add it to ARC options.N z&Password for ARC can't contain spaces.gr   )optionspasswords     U/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/patoolib/programs/arc.py_add_password_to_optionsr      s:    
hBCCC~8~~GN    c                 r    t          d|          }||t          j                            |           g}|d|ifS )zExtract a ARC archive.xcwd)r   ospathabspath)	archivecompressioncmd	verbosityinteractiveoutdirr
   r	   cmdlists	            r   extract_arcr      s<     'sH55GGRW__W556GeV_%%r   c                     |g}|dk    r$|                     t          d|                     n#|                     t          d|                     |                     |            |S )zList a ARC archive.   vl)appendr   )r   r   r   r   r   r
   r   s          r   list_arcr!   *   sf    eG1}}/X>>????/X>>???NN7Nr   c                 (    |t          d|          | gS )zTest a ARC archive.t)r   )r   r   r   r   r   r
   s         r   test_arcr$   5   s    )#x88'BBr   c                 V    |t          d|          | g}|                    |           |S )zCreate a ARC archive.a)r   extend)r   r   r   r   r   	filenamesr
   r   s           r   
create_arcr)   :   s2     ,S(;;WEGNN9Nr   )N)__doc__r   utilr   r   r   r!   r$   r)   extract_freearclist_freearctest_freearccreate_freearc r   r   <module>r1      s    , + 				         IM& & & &   C C C C LP    r   