Your IP : 18.117.10.207


Current Path : /opt/alt/python311/lib64/python3.11/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/dir_util.cpython-311.opt-2.pyc

�

c��fb��h�	ddlZddlZddlmZmZddlmZiadd�Zdd�Z			d
d�Z
d	�Zdd
�Zd�Z
dS)�N)�DistutilsFileError�DistutilsInternalError)�log��c	���	t|t��std|�d����tj�|��}g}tj�|��s|dkr|St�tj�	|����r|Stj�
|��\}}|g}|r||rztj�|��s[tj�
|��\}}|�d|��|r!|rtj�|���[|D�]}tj�||��}tj�	|��}	t�|	��r�]|dkrtjd|��|s�	tj||��nk#t $r^}
|
jt"jkrtj�|��s t'd|�d|
jd	�����Yd}
~
nd}
~
wwxYw|�|��dt|	<��|S)
Nz%mkpath: 'name' must be a string (got �)�rrzcreating %szcould not create '�': ���)�
isinstance�strr�os�path�normpath�isdir�
_path_created�get�abspath�split�insert�joinr�info�mkdir�OSError�errno�EEXISTr�args�append)�name�mode�verbose�dry_run�created_dirs�head�tail�tails�d�abs_head�excs           �9/opt/alt/python311/lib64/python3.11/distutils/dir_util.py�mkpathr,sv����d�C� � �D�$�$�<@�D�D�B�D�D�	D��7���D�!�!�D��L�	�w�}�}�T����d�b�j�j�����������.�.�/�/�����7�=�=��&�&�L�T�4�
�F�E�
��4����
�
�d� 3� 3���w�}�}�T�*�*���t�
���Q�������4����
�
�d� 3� 3���$�$���w�|�|�D�!�$�$���7�?�?�4�(�(�����X�&�&�	���a�<�<��H�]�D�)�)�)��	&�
N����t�$�$�$�$���
N�
N�
N��	�U�\�1�1�b�g�m�m�D�6I�6I�1�,�,�9=���s�x��|�|�L�N�N�N�2�1�1�1�1�����
N����
����%�%�%�"#�
�h����s�G!�!
I	�+AI�I	c	��	t��}|D]R}|�tj�|tj�|�������St
|��D]}t||||����dS)N�r"r#)�set�addrrr�dirname�sortedr,)�base_dir�filesr!r"r#�need_dir�file�dirs        r+�create_treer8Ps�����u�u�H��D�D�����R�W�\�\�(�B�G�O�O�D�,A�,A�B�B�C�C�C�C��h���<�<���s�D�'�7�;�;�;�;�;�<�<�c
���	ddlm}|s1tj�|��std|z���	tj|��}	n6#t$r)}
|rg}	ntd|�d|
j�����Yd}
~
nd}
~
wwxYw|st||���g}|	D�]I}tj�
||��}
tj�
||��}|�d��r�Y|r|tj�|
��r]tj
|
��}|dkrtjd	||��|stj||��|�|����tj�|
��r,|�t'|
|||||||�
������"||
||||||�
��|�|����K|S)Nr)�	copy_filez&cannot copy tree '%s': not a directoryzerror listing files in 'r)r"z.nfsrzlinking %s -> %sr.)�distutils.file_utilr;rrrr�listdirr�strerrorr,r�
startswith�islink�readlinkrr�symlinkr�extend�	copy_tree)�src�dst�
preserve_mode�preserve_times�preserve_symlinks�updater"r#r;�names�e�outputs�n�src_name�dst_name�	link_dests                r+rDrDcsW���&.�-�-�-�-�-��>�2�7�=�=��-�-�>� �6��<�>�>�	>�I��
�3�������I�I�I��	I��E�E�$�$�7:�s�s�A�J�J�G�I�I�
I�
�E�E�E�E�����I�����%��s�G�$�$�$�$��G�
�%�%���7�<�<��Q�'�'���7�<�<��Q�'�'���<�<����	���	%������!9�!9�	%���H�-�-�I��!�|�|���+�X�y�A�A�A��
0��
�9�h�/�/�/��N�N�8�$�$�$�$�
�W�]�]�8�
$�
$�		%��N�N��(�H�m�(�*;�V�")�7�<�<�<�
=�
=�
=�
=�

�I�h��-�$�f�g�%�
'�
'�
'�
'�
�N�N�8�$�$�$�$��Ns�A�
B�A?�?Bc��	tj|��D]�}tj�||��}tj�|��r0tj�|��st
||���q|�tj|f����|�tj	|f��dS)N)
rr=rrrr@�_build_cmdtupler�remove�rmdir)r�	cmdtuples�f�real_fs    r+rSrS�s���#�
�Z��
�
�2�2������d�1�%�%��
�7�=�=�� � �	2������)?�)?�	2��F�I�.�.�.�.����b�i��0�1�1�1�1�
���b�h��%�&�&�&�&�&r9c�j�	|dkrtjd|��|rdSg}t||��|D]}}	|d|d��tj�|d��}|tvrt|=�Q#t$r }tjd||��Yd}~�vd}~wwxYwdS)Nrz'removing '%s' (and everything under it)rzerror removing %s: %s)	rrrSrrrrr�warn)�	directoryr"r#rV�cmdrr*s       r+�remove_treer]�s�����!�|�|���:�I�F�F�F������I��I�y�)�)�)��>�>��	>��C��F�3�q�6�N�N�N��g�o�o�c�!�f�-�-�G��-�'�'�!�'�*����	>�	>�	>��H�,�i��=�=�=�=�=�=�=�=�����	>����>�>s�A
B�
B0�B+�+B0c��	tj�|��\}}|dd�tjkr
||dd�z}|S)Nrr)rr�
splitdrive�sep)r�drives  r+�ensure_relativerb�sN����'�$�$�T�*�*�K�E�4��A�a�C�y�B�F����t�A�B�B�x����Kr9)rrr)rrrrrr)rr)rr�distutils.errorsrr�	distutilsrrr,r8rDrSr]rb�r9r+�<module>rfs���G�
�	�	�	�����G�G�G�G�G�G�G�G��������
�
=�=�=�=�~<�<�<�<�&9:�@A�C�C�C�C�J'�'�'�>�>�>�>�0����r9

?>