
    h                        S SK Jr  S SKrS SKJr  SSKJr  \R                  (       a  S SKJr  SSK	J
r
  S
S jrSSS	 jjrg)    )annotationsN)PurePosixPath   )DirectoryNotEmpty)IO)FSc                    [        U5      n[        S5      n X:w  a3  U R                  UR                  5       5        UR                  nX:w  a  M2  gg! [         a     gf = f)zRemove all empty parents./N)r   	removediras_posixparentr   )fspathroots      Z/var/www/fran/franai/venv/lib/python3.13/site-packages/fontTools/misc/filesystem/_tools.pyremove_emptyr      sV    DDlLL);;D l  s   5A 
AAc                   ^^ Uc  SOUmU R                   mUR                  n[        UU4S jS5       H  nU" U5        M     g)z*Copy data from one file object to another.Ni   c                 &   > T" T 5      =(       d    S $ N )_chunk_sizereads   r   <lambda> copy_file_data.<locals>.<lambda>!   s    d;/747    )r   writeiter)src_filedst_file
chunk_sizer   chunkr   r   s        @@r   copy_file_datar"      s<    !+!3+K==DNNE 7>e ?r   )r   r   r   strr   )r   r   r   r   r    z
int | None)
__future__r   typingpathlibr   _errorsr   TYPE_CHECKINGr   _baser   r   r"   r   r   r   <module>r*      s*    "  ! &		r   