관리-도구
편집 파일: file_util.cpython-311.pyc
� N�Dg � �` � d Z ddlZddlmZ ddlmZ dddd �Zdd�Z dd�Zdd �Z d� Z dS )zFdistutils.file_util Utility functions for operating on single files. � N� )�DistutilsFileError)�log�copyingzhard linkingzsymbolically linking)N�hard�sym� @ c �. � d}d} t | d� � }n:# t $ r-}t d� | |j � � � � �d}~ww xY wt j � |� � rP t j |� � n:# t $ r-}t d� ||j � � � � �d}~ww xY w t |d� � }n:# t $ r-}t d� ||j � � � � �d}~ww xY w |� |� � }n:# t $ r-}t d� | |j � � � � �d}~ww xY w|snR |� |� � n:# t $ r-}t 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 �format�strerror�os�path�exists�unlink�read�write�close)�src�dst�buffer_size�fsrc�fdst�e�bufs �/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/file_util.py�_copy_file_contentsr s � � �D��D�*� X���T�?�?�D�D��� X� X� X�$�%>�%E�%E�c�1�:�%V�%V�W�W�W����� X���� �7�>�>�#��� � �� �#������� � � �(�/�6�6�s�A�J�G�G�� � ����� ���� ���T�?�?�D�D��� � � �$�+�2�2�3�� �C�C�� � ����� ���� � ��i�i��,�,����� � � �(�2�9�9�#�q�z�J�J�� � ����� ���� � �� �� � �3������� � � �(�1�8�8��a�j�I�I�� � ����� ���� � � � ��J�J�L�L�L�� ��J�J�L�L�L�L�L� � �� � ��J�J�L�L�L�� ��J�J�L�L�L�L� ���s� � �G% � A�(A � A�"G% �2B �G% � B>�(B9�9B>�>G% �C �G% � D �(D�D � G% �D% �$G% �% E�/(E�E�G% �#E9 �8G% �9 F0�(F+�+F0�0G% �%/Hc � � ddl m} ddlm} m} m}m} t j � | � � st d| z � � �t j � |� � r@|} t j � |t j � | � � � � }nt j � |� � } |r+ || |� � s|dk rt j d| � � |dfS t"