U
    ‹¾úg[  ã                   @   sf   d dl T ddlmZ eedƒ [d dlZej d¡rbd dlZd dlZd dl Z dd„ Z	e	d	œd
d„Z
dS )é    )Ú*é   )Úpassthrough_moduleÚshutilNZfreebsdc              
   O   sŠ   t j |¡r"t j |t j | ¡¡}tj| |f|ž|Ž ztj| |f|ž|Ž W n6 tk
r„ } z|j	t
t	dd ƒkrt‚ W 5 d }~X Y nX |S )NÚEPERM)ÚosÚpathÚisdirÚjoinÚbasenamer   ÚcopyfileÚcopystatÚPermissionErrorÚerrnoÚgetattr)ÚsrcÚdstÚargsÚkwargsÚe© r   ú8/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/compat/shutil.pyÚcopy2   s    r   )Úcopy_functionc                 O   s   t j|d| i|—ŽS )Nr   )r   Úmove)r   r   r   r   r   r   r      s    r   )r   Zcompat_utilsr   Ú__name__ÚsysÚplatformÚ
startswithr   r   r   r   r   r   r   r   Ú<module>   s   
