Your IP : 3.144.83.68


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/__pycache__/_shutil.cpython-311.pyc

�

\�bg�����dZddlZddlZddlmZmZddlmZddlm	Z		ddlm
Z
n#e$r
ded	ed
dfd�Z
YnwxYwed��Z
d
�Zdede
fdeded
e
fd�Zdefd�Zd�ZdS)z2Convenience layer on top of stdlib's shutil and os�N)�Callable�TypeVar�)�py311)�log)�chmod�args�kwargs�returnc��dS�N�)r	r
s  �c/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/_shutil.pyrrs�����_Tc��tjd||��	t||��dS#t$r }tjd|��Yd}~dSd}~wwxYw)Nzchanging mode of %s to %ozchmod failed: %s)r�debugr�OSError)�path�mode�es   r�attempt_chmod_verbosersv���I�)�4��6�6�6�)�
�d�D��������)�)�)��	�$�a�(�(�(�(�(�(�(�(�(�����)���s�*�
A�A�A�func.�arg�excc��|tjtjfvr5tjdkr%t	|t
j��||��S|�)zIshutils onexc callback to automatically call chmod for certain functions.�nt)�os�unlink�remove�namer�stat�S_IWRITE)rrrs   r�_auto_chmodr$ sG��
��	�2�9�%�%�%�"�'�T�/�/��c�4�=�1�1�1��t�C�y�y��

�IrFc�.�tj|||��S)zx
    Similar to ``shutil.rmtree`` but automatically executes ``chmod``
    for well know Windows failure scenarios.
    )r�
shutil_rmtree)r�
ignore_errors�onexcs   r�rmtreer)+s��
��t�]�E�:�:�:rc�b�tj�|��rt|fi|��dSdSr
)rr�isdirr))r�optss  r�rmdirr-3s>��	�w�}�}�T�����t���t�������r)�__doc__rr"�typingrr�compatr�	distutilsrr�ImportError�objectrr�str�
BaseExceptionr$r)r-rrr�<module>r6sP��8�8�	�	�	�	�����$�$�$�$�$�$�$�$�������������
����������
�
�
�
�V�
�v�
�$�
�
�
�
�
�
�
����
�W�T�]�]��)�)�)��
�3��7�
��"%��,9������� %�K�;�;�;�;�����s�'�9�9

?>