/usr/lib/python3/dist-packages/sos/cleaner/archives/__pycache__
Edit: /usr/lib/python3/dist-packages/sos/cleaner/archives/__pycache__/sos.cpython-310.pyc (2869B)
o
G%@i @ s` d dl Z d dlZd dlmZ G dd deZG dd deZG dd deZG d d
d
eZdS ) N)SoSObfuscationArchivec @ $ e Zd ZdZdZdZedd ZdS )SoSReportArchivezThis is the class representing an sos report, or in other words the
type the archive the SoS project natively generates
reportzsos report archivec C * z
t |o d|v W S ty Y dS w )N
sosreport-Ftarfile
is_tarfile Exceptionclsarc_path r :/usr/lib/python3/dist-packages/sos/cleaner/archives/sos.py
check_is_type
zSoSReportArchive.check_is_typeN__name__
__module____qualname____doc__ type_namedescriptionclassmethodr r r r r r r c @ r )SoSReportDirectoryzThis is the archive class representing a build directory, or in other
words what `sos report --clean` will end up using for in-line obfuscation
report_dirzsos report directoryc C s t j|r
dt |v S dS )Nsos_logsFospathisdirlistdirr r r r r ) s z SoSReportDirectory.check_is_typeNr r r r r r ! r r c @ s0 e Zd ZdZdZdZdZedd Zdd Z d S )
SoSCollectorArchivezArchive 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
collectzsos collect tarballTc C r )Nzsos-collectFr r r r r r : r z!SoSCollectorArchive.check_is_typec C sd | j dd | j}g }t|D ]}tj||}d|v r/t|r/|t || j
| j| j q|S )NT)quietr )
extractextracted_pathr r# r! joinr r
appendr tmpdirkeep_binary_filestreat_certificates)self_patharchivesfnamearc_namer r r get_nested_archivesA s z'SoSCollectorArchive.get_nested_archivesN)
r r r r r r is_nestedr r r3 r r r r r$ 0 s
r$ c @ r )SoSCollectorDirectoryz{The archive class representing the temp directory used by ``sos
collect`` when ``--clean`` is used during runtime.
collect_dirzsos collect directoryc C s. t j|rt |D ] }d|v r dS qdS )Nzsos-collector-TFr )r
r r1 r r r r V s z#SoSCollectorDirectory.check_is_typeNr r r r r r5 N r r5 )r r sos.cleaner.archivesr r r r$ r5 r r r r
s