
    h                    N    S SK Jr  S SKrS SKrSSKJr  SSKJr   " S S\5      rg)    )annotationsN   )OperationFailed)OSFSc                  B   ^  \ rS rSrSSU 4S jjjrU 4S jrS rSrU =r$ )TempFS
   c                   > Xl         X l        [        R                  " S5      U l        SU l        [        TU ]  U R                  5        g )N__temp_fs__F)
auto_cleanignore_clean_errorstempfilemkdtemp	_temp_dir_cleanedsuper__init__)selfr   r   	__class__s      [/var/www/fran/franai/venv/lib/python3.13/site-packages/fontTools/misc/filesystem/_tempfs.pyr   TempFS.__init__   s8    $#6 !))-8(    c                d   > U R                   (       a  U R                  5         [        TU ]  5         g )N)r   cleanr   close)r   r   s    r   r   TempFS.close   s    ??JJLr   c                    U R                   (       a  g  [        R                  " U R                  5        SU l         g ! [         a5  nU R
                  (       d  [        SU R                  < 35      Ue S nANBS nAff = f)Nz&failed to remove temporary directory: T)r   shutilrmtreer   	Exceptionr   r   )r   es     r   r   TempFS.clean   si    ==	MM$..)   	++%<T^^<NO ,	s    < 
A;+A66A;)r   r   r   r   )TT)r   boolr   r#   )	__name__
__module____qualname____firstlineno__r   r   r   __static_attributes____classcell__)r   s   @r   r   r   
   s    ) )
 r   r   )	
__future__r   r   r   _errorsr   _osfsr   r    r   r   <module>r.      s     "   $ T r   