관리-도구
편집 파일: file_util.cpython-312.pyc
� t��e � �^ � d Z ddlZddlmZ ddlmZ dddd �Zdd �Z dd�Zdd�Z d � Z y)zFdistutils.file_util Utility functions for operating on single files. � N� )�DistutilsFileError)�log�copyingzhard linkingzsymbolically linking)N�hard�symc � � d}d} t | d� }t j j |� r t j |� t |d� } |j |� }|sn |j |� �( |r|j � |r|j � yy# t $ r*}t dj | |j � � �d}~ww xY w# t $ r*}t dj ||j � � �d}~ww xY w# t $ r*}t dj ||j � � �d}~ww xY w# t $ r*}t dj | |j � � �d}~ww xY w# t $ r*}t dj ||j � � �d}~ww xY w# |r|j � |r|j � 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 '{}': {}zcould 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/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils/file_util.py�_copy_file_contentsr s� � � �D��D�*� X���T�?�D� �7�7�>�>�#�� �� � �#�� ���T�?�D� � ��i�i��,�� �� �� � �3�� � � ��J�J�L���J�J�L� ��M � X�$�%>�%E�%E�c�1�:�:�%V�W�W�� X�� � �(�/�6�6�s�A�J�J�G�� �� �� � �$�+�2�2�3�� � �C�� �� �� � �(�2�9�9�#�q�z�z�J�� �� �� � �(�1�8�8��a�j�j�I�� �� �� ��J�J�L���J�J�L� �s� �B% �F3 �C � D �F3 �E �(F3 �,E= �=F3 �% C�.%C�C�F3 � D�$%D � D�F3 � E�%D?�?E�F3 � E:�%E5�5E:�:F3 �= F0�%F+�+F0�0F3 �3'Gc �| � ddl m} ddlm} m} m}m} t j j | � st d| z � �t j j |� r@|} t j j |t j j | � � }nt j j |� } |r( || |� s|dk\ rt j d| � |dfS t"