%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/file_util.pyo |
� 5}�ac @ s� d Z d Z d d l Z d d l m Z d d l m Z i d d 6d d 6d d 6Z d d � Z d d d d d d d � Z d d d � Z d � Z d S( sF distutils.file_util Utility functions for operating on single files. s $Id$i����N( t DistutilsFileError( t logt copyings hard linkingt hards symbolically linkingt symi i c C s� d } d } z�y t | d � } Wn2 t j k rV \ } } t d | | f � � n Xt j j | � r� y t j | � Wq� t j k r� \ } } t d | | f � � q� Xn y t | d � } Wn2 t j k r� \ } } t d | | f � � n Xx� y | j | � } Wn2 t j k rD\ } } t d | | f � � n X| sOPn y | j | � Wq� t j k r�\ } } t d | | f � � q� Xq� WWd | r�| j � n | r�| j � n Xd S( s5 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. t rbs could not open '%s': %ss could not delete '%s': %st wbs could not create '%s': %ss could not read from '%s': %ss could not write to '%s': %sN( t Nonet opent ost errorR t patht existst unlinkt readt writet close( t srct dstt buffer_sizet fsrct fdstt errnot errstrt buf( ( s<