HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/root/lib/python3.9/site-packages/sos/cleaner/archives/__pycache__/sos.cpython-39.pyc
a

\��h��@s`ddlZddlZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)�N)�SoSObfuscationArchivec@s$eZdZdZdZdZedd��ZdS)�SoSReportArchivez�This is the class representing an sos report, or in other words the
    type the archive the SoS project natively generates
    �reportzsos report archivecCs.zt�|�od|vWSty(YdS0dS)N�
sosreport-F��tarfile�
is_tarfile�	Exception��cls�arc_path�r
�</usr/lib/python3.9/site-packages/sos/cleaner/archives/sos.py�
check_is_typeszSoSReportArchive.check_is_typeN��__name__�
__module__�__qualname__�__doc__�	type_name�description�classmethodrr
r
r
rrs
rc@s$eZdZdZdZdZedd��ZdS)�SoSReportDirectoryz�This is the archive class representing a build directory, or in other
    words what `sos report --clean` will end up using for in-line obfuscation
    Z
report_dirzsos report directorycCstj�|�rdt�|�vSdS)NZsos_logsF��os�path�isdir�listdirr
r
r
rr)sz SoSReportDirectory.check_is_typeNrr
r
r
rr!s
rc@s0eZdZdZdZdZdZedd��Zdd�Z	d	S)
�SoSCollectorArchivez�Archive class representing the tarball created by ``sos collect``. It
    will not provide prep files on its own, however it will provide a list
    of SoSReportArchive's which will then be used to prep the parsers
    Zcollectzsos collect tarballTcCs.zt�|�od|vWSty(YdS0dS)Nzsos-collectFrr
r
r
rr:sz!SoSCollectorArchive.check_is_typecCs`|jdd�|j}g}t�|�D]:}tj�||�}d|vr t�|�r |�t	||j
|j��q |S)NT)�quietr)�extractZextracted_pathrrr�joinrr�appendrZtmpdirZkeep_binary_files)�self�_pathZarchives�fnameZarc_namer
r
r�get_nested_archivesAs�z'SoSCollectorArchive.get_nested_archivesN)
rrrrrrZ	is_nestedrrr&r
r
r
rr0s
rc@s$eZdZdZdZdZedd��ZdS)�SoSCollectorDirectoryz{The archive class representing the temp directory used by ``sos
    collect`` when ``--clean`` is used during runtime.
    Zcollect_dirzsos collect directorycCs.tj�|�r*t�|�D]}d|vrdSqdS)Nzsos-collector-TFr)rrr%r
r
rrUs
z#SoSCollectorDirectory.check_is_typeNrr
r
r
rr'Ms
r')rrZsos.cleaner.archivesrrrrr'r
r
r
r�<module>s