HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/_shutil.cpython-310.pyc
o

��h*�	@s�dZddlZddlZddlmZmZddlmZddlm	Z	zddlm
Z
Wney:ded	ed
dfdd�Z
Ynwed
�Z
dd�Zdede
fdeded
e
fdd�Zdefdd�Zdd�Zdd�ZdS)z2Convenience layer on top of stdlib's shutil and os�N)�Callable�TypeVar�)�py311)�log)�chmod�args�kwargs�returncOsdS�N�)rr	rr�=/usr/local/lib/python3.10/dist-packages/setuptools/_shutil.pyrsr�_Tc
CsRt�d||�zt||�WdSty(}z
t�d|�WYd}~dSd}~ww)Nzchanging mode of %s to %ozchmod failed: %s)r�debugr�OSError)�path�mode�errr
�attempt_chmod_verboses��r�func.�arg�exccCs2|tjtjfvrtjdkrt|tj�||�S|�)zIshutils onexc callback to automatically call chmod for certain functions.�nt)�os�unlink�remove�namer�stat�S_IWRITE)rrrrrr
�_auto_chmod srFcCst�|||�S)zx
    Similar to ``shutil.rmtree`` but automatically executes ``chmod``
    for well know Windows failure scenarios.
    )r�
shutil_rmtree)r�
ignore_errors�onexcrrr
�rmtree+sr#cKs$tj�|�rt|fi|��dSdSr)rr�isdirr#)r�optsrrr
�rmdir3s�r&cCst�d�}t�|�|S)N�)r�umask)�tmprrr
�
current_umask8s

r*)�__doc__rr�typingrr�compatr�	distutilsrr�ImportError�objectrr�str�
BaseExceptionrr#r&r*rrrr
�<module>s2�	
���
�