
    khQ                        d dl mZ d dlZddlmZ ddlmZmZmZ ddl	m
Z
 ej                  rddlmZ ddZ	 	 d	 	 	 	 	 	 	 dd	Zdd
ZddZy)    )annotationsN   )IllegalDestination)combinefrombaseisbase)copy_file_data)FSc                    | |u r||k(  rt        d|d      | j                  |d      5 }|j                  |d      5 }t        ||       d d d        d d d        y # 1 sw Y   xY w# 1 sw Y   y xY w)Ncannot copy 
 to itselfrbwb)r   openr	   )src_fssrc_pathdst_fsdst_pathsrc_filedst_files         q/var/www/pru.catia.catastroantioquia-mas.com/tasa/lib/python3.12/site-packages/fontTools/misc/filesystem/_copy.py	copy_filer      s~    H0 <|:!FGG	Xt	$ /[[4( 	/H8X.	// /	/ 	// /s"   A(AA(A%	!A((A1c           
         | |u rt        ||      rt        d| d      |j                  |d       | j                  j	                  |      D ])  }|j                  t        |t        ||            d       + y )Nr   r   T)recreate)r   r   makedirswalkdirsmakedirr   r   )r   r   src_rootdst_rootdir_paths        r   copy_structurer"      sx     F8X6 <z!DEE
OOHtO,KK$$X. Wwx(H)EFQUVW    c                    t        | |||       | j                  j                  |      D ]&  }t        |t	        ||            }t        | |||       ( y )N)r"   r   filesr   r   r   )r   r   r   r   	file_path	copy_paths         r   copy_dirr(   $   sO    668X6[[&&x0 8	Hhx&CD	&)VY78r#   c                     t        | d|d       y )N/)r(   )r   r   s     r   copy_fsr+   ,   s    VS&#&r#   )r   r
   r   strr   r
   r   r,   )r*   r*   )r   r
   r   r
   r   r,   r    r,   )r   r
   r   r
   )
__future__r   typing_errorsr   _pathr   r   r   _toolsr	   TYPE_CHECKING_baser
   r   r"   r(   r+    r#   r   <module>r5      sh    "  ' , , "	/ 	WWW W 	W8'r#   