
    ig                     H    d Z ddlZddlZddlZddlZddlmZ  G d d      Zy)z$a small module for junk file removal    N)datetimec                       e Zd ZddZddZy)Shrotc                 N    || _         | j                   j                  d   | _        y )Nshrot)edirsfudi)selferimp
do_verboses      !/home/ernad/ernad/python/shrot.py__init__zShrot.__init__   s     FFKK(	    c                    | j                   j                  j                  d   }t        j                         j                  |      }t        j                  j                  |      dz   |z   }| j                  dz   |z   }t        j                         }|d   d   j                  d   j                  j                  }t        | d| d| t         j"                  	       |rt%        j&                  ||       y
t%        j(                  ||       y
)Ntime_format_/   r   r   z: shrot z --> )fileT)r   abovo	constantsr   todaystrftimeospathbasenamer
   inspectstackf_locals	__class____name__printsysstderrshutilmovecopy2)	r   fufi	do_remover   nowbana	save_fufir   modules	            r   makez
Shrot.make   s     ffll,,];nn''4ww%+c1IIOd*	q!%%f-77@@eI;7cjjIKKi(  LLy)r   N)F)T)r"   
__module____qualname__r   r/    r   r   r   r      s    
r   r   )__doc__r   r   r$   r&   r   r   r2   r   r   <module>r4      s%    *  	 
  
 r   