Current File : //usr/lib/python3/dist-packages/sos/cleaner/archives/__pycache__/generic.cpython-312.pyc
�

-�_g���L�ddlZddlZddlmZGd�de�ZGd�de�Zy)�N)�SoSObfuscationArchivec�.�eZdZdZdZdZed��Zd�Zy)�DataDirArchivez{A plain directory on the filesystem that is not directly associated with
    any known or supported collection utility
    �data_dirzunassociated directoryc�@�tjj|�S�N)�os�path�isdir��cls�arc_paths  �>/usr/lib/python3/dist-packages/sos/cleaner/archives/generic.py�
check_is_typezDataDirArchive.check_is_types���w�w�}�}�X�&�&�c�T�tjj|j�Sr)r	r
�abspath�archive_path��selfs r�set_archive_rootzDataDirArchive.set_archive_roots���w�w���t�0�0�1�1rN�	�__name__�
__module__�__qualname__�__doc__�	type_name�description�classmethodrr�rrrrs*����I�*�K��'��'�2rrc�.�eZdZdZdZdZed��Zd�Zy)�TarballArchivezdA generic tar archive that is not associated with any known or supported
    collection utility
    �tarballzunassociated tarballc�L�	tj|�S#t$rYywxYw)NF)�tarfile�
is_tarfile�	Exceptionrs  rrzTarballArchive.check_is_type)s*��	��%�%�h�/�/���	��	�s��	#�#c��|jjj�r |jjjSy)N�)�tarobj�firstmemberr�namers rrzTarballArchive.set_archive_root0s1���;�;�"�"�(�(�*��;�;�*�*�/�/�/�rNrr rrr"r"!s*����I�(�K�����rr")r	r%�sos.cleaner.archivesrrr"r rr�<module>r.s*��
��6�
2�*�
2� �*�r