관리-도구
편집 파일: archive.pyo
� u��ec @ s d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z y d d l Z Wn e k r� n Xd d l Z e j r� e Z n d Z d Z d Z d Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t Lock( t sos_get_command_outputt is_executablet filet linkt nodet dirt Archivec B s� e Z d Z e d � � Z e j d � Z d Z e Z e � Z d � Z d � Z d � Z d � Z d � Z d � Z d d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s! Abstract base class for archives.c C s | j S( s6 Returns the archive class's name as a string. ( t __name__( t cls( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt archive_type* s t sost unsetc C s d | j � | f S( Ns [archive:%s] %s( R ( t selft msg( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt _format_msg7 s c C s | | _ d S( N( t _debug( R t debug( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt set_debug: s c C s | j j | j | � � d S( N( t logt errorR ( R R ( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt log_error= s c C s | j j | j | � � d S( N( R t warningR ( R R ( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt log_warn@ s c C s | j j | j | � � d S( N( R t infoR ( R R ( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt log_infoC s c C s* | j s d S| j j | j | � � d S( N( R R R R ( R R ( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt log_debugF s c C s t � d S( N( t NotImplementedError( R t srct dest( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt add_fileN s t wc C s t � d S( N( R ( R t contentR t mode( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt add_stringQ s c C s t � d S( N( R ( R R R ( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt add_binaryT s c C s t � d S( N( R ( R t sourcet link_name( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt add_linkW s c C s t � d S( N( R ( R t path( ( s/ /usr/lib/python2.7/site-packages/sos/archive.pyt add_dirZ s c C s t � d S( N( R ( R R'