File: //lib/python3.6/site-packages/sos/cleaner/archives/__pycache__/generic.cpython-36.opt-1.pyc
3
\��h� � @ s@ d dl Z d dlZd dlmZ G dd� de�ZG dd� de�ZdS )� N)�SoSObfuscationArchivec @ s, e Zd ZdZdZdZedd� �Zdd� ZdS ) �DataDirArchivez{A plain directory on the filesystem that is not directly associated with
any known or supported collection utility
Zdata_dirzunassociated directoryc C s t jj|�S )N)�os�path�isdir)�cls�arc_path� r �/usr/lib/python3.6/generic.py�
check_is_type s zDataDirArchive.check_is_typec C s t jj| j�S )N)r r �abspathZarchive_path)�selfr r r
�set_archive_root s zDataDirArchive.set_archive_rootN) �__name__�
__module__�__qualname__�__doc__� type_name�description�classmethodr r r r r r
r s
r c @ s, e Zd ZdZdZdZedd� �Zdd� ZdS ) �TarballArchivezdA generic tar archive that is not associated with any known or supported
collection utility
Ztarballzunassociated tarballc C s$ y
t j|�S tk
r dS X d S )NF)�tarfileZ
is_tarfile� Exception)r r r r r
r ) s
zTarballArchive.check_is_typec C s | j jj� r| j jjS dS )N� )ZtarobjZfirstmemberr �name)r
r r r
r 0 s
zTarballArchive.set_archive_rootN) r r r r r r r r r r r r r
r ! s
r )r r Zsos.cleaner.archivesr r r r r r r
�<module> s