
    |*&i                     ,    S SK r S SKrS SKJr  S rS rg)    N)print_greyed_outc                    U R                  S5      (       a  gU R                  S5      (       a`  [        R                  R                  U5      (       a;  [        R                  R	                  U5      n[
        R
                  " 5       nXC-
  U:  $ gg)NreloadF
autoupdateT)getospathexistsgetmtimetime)configfilepathcache_durationcache_mtimecurrent_times        5/home/kali/cveseeker/services/cache/loaders/loader.pyis_cache_validr      si    zz(zz,77>>(##''**84K99;L ..@@    c           	          [         R                  R                  U 5      (       d*   [         R                  " U 5        [	        SU SU  S35        g g ! [
         a  n[	        SU SU  SU 35         S nAg S nAff = f)Nz[+] z: Created cache directory at 'z'.z[!] z$: Failed to create cache directory 'z': )r   r	   r
   makedirsr   	Exception)	cache_dirprovideres      r   ensure_cache_directoryr      s}    77>>)$$	eKK	"tH:-KI;VXYZ %  	etH:-QR[Q\\_`a_bcdd	es   (A 
A8A33A8)r   r   terminal.clir   r   r    r   r   <module>r      s    	  )er   