관리-도구
편집 파일: file_util.cpython-311.pyc
� �܋f � �` � d Z ddlZddlmZ ddlmZ dddd �Zdd�Z dd�Zdd�Z d� Z dS )zFdistutils.file_util Utility functions for operating on single files. � N� )�log)�DistutilsFileError�copyingzhard linkingzsymbolically linking)N�hard�sym� @ c � � d}d} t | d� � }n,# t $ r}t d| � d|j � �� � �d}~ww xY wt j � |� � rB t j |� � n,# t $ r}t d|� d|j � �� � �d}~ww xY w t |d� � }n,# t $ r}t d|� d|j � �� � �d}~ww xY w |� |� � }n,# t $ r}t d | � d|j � �� � �d}~ww xY w|snD |� |� � n,# t $ r}t d |� d|j � �� � �d}~ww xY w�� |r|� � � |r|� � � dS dS # |r|� � � |r|� � � w w xY w)a5 Copy the file 'src' to 'dst'; both must be filenames. Any error opening either file, reading from 'src', or writing to 'dst', raises DistutilsFileError. Data is read/written in chunks of 'buffer_size' bytes (default 16k). No attempt is made to handle anything apart from regular files. N�rbzcould not open '�': zcould not delete '�wbzcould not create 'Tzcould not read from 'zcould not write to ')�open�OSErrorr �strerror�os�path�exists�unlink�read�write�close)�src�dst�buffer_size�fsrc�fdst�e�bufs �V/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_distutils/file_util.py�_copy_file_contentsr s~ � � �D��D�"� N���T�?�?�D�D��� N� N� N�$�%L��%L�%L�� �%L�%L�M�M�M����� N���� �7�>�>�#��� T� T�� �#������� T� T� T�(�)R�c�)R�)R�a�j�)R�)R�S�S�S����� T���� P���T�?�?�D�D��� P� P� P�$�%N�#�%N�%N�!�*�%N�%N�O�O�O����� P���� V� W��i�i��,�,����� W� W� W�(�)U��)U�)U���)U�)U�V�V�V����� W���� � �� V�� � �3������� V� V� V�(�)T��)T�)T�� �)T�)T�U�U�U����� V���� V� � � ��J�J�L�L�L�� ��J�J�L�L�L�L�L� � �� � ��J�J�L�L�L�� ��J�J�L�L�L�L� ���s� � �F � A�<�A�"F �$A9 �8F �9 B"�B�B"�"F �&B7 �6F �7 C �C�C � F �%C; �:F �; D$�D�D$�$F �+E � F � E*�E%�%E*�*F �/GTFc � � ddl m} ddlm} m} m}m} t j � | � � st d| � d�� � �t j � |� � r@|} t j � |t j � | � � � � }nt j � |� � } |r+ || |� � s|dk rt j d| � � |dfS t"