AlkantarClanX12

Your IP : 3.133.145.17


Current Path : /opt/alt/python35/lib64/python3.5/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/distutils/__pycache__/file_util.cpython-35.opt-2.pyc



���]��@s�ddlZddlmZddlmZddddddiZddd�Zd
d
ddd
ddd�Zd
ddd�Zdd�Z	dS)�N)�DistutilsFileError)�logZcopying�hardzhard linking�symzsymbolically linking�icNCs�d}d}z�yt|d�}Wn>tk
rb}ztd||jf��WYdd}~XnXtjj|�r�ytj|�Wn>tk
r�}ztd||jf��WYdd}~XnXyt|d�}Wn>tk
r}ztd||jf��WYdd}~XnXx�y|j|�}Wn>tk
rq}ztd||jf��WYdd}~XnX|syPy|j	|�Wqtk
r�}ztd||jf��WYdd}~XqXqWWd|r�|j
�|r�|j
�XdS)N�rbzcould not open '%s': %szcould not delete '%s': %s�wbzcould not create '%s': %szcould not read from '%s': %szcould not write to '%s': %s)�open�OSErrorr�strerror�os�path�exists�unlink�read�write�close)�src�dstZbuffer_size�fsrc�fdst�e�buf�r�./opt/alt/python35/lib64/python3.5/file_util.py�_copy_file_contentssF	,)))1
r�cCs�ddlm}ddlm}	m}
m}m}tjj	|�sTt
d|��tjj|�r�|}
tjj|tjj
|��}ntjj|�}
|r�|||�r�|dkr�tjd|�|dfSyt|}Wn"tk
rtd|��YnX|dkrptjj
|�tjj
|�krZtjd|||
�ntjd|||�|r�|dfS|d	kr�tjj|�o�tjj||�s6ytj||�|dfSWq6tk
r�Yq6XnM|d
kr6tjj|�otjj||�s6tj||�|dfSt||�|sO|r�tj|�}|r�tj|||	||
f�|r�tj||||��|dfS)Nr)�newer)�ST_ATIME�ST_MTIME�ST_MODE�S_IMODEz4can't copy '%s': doesn't exist or not a regular filerz"not copying %s (output up-to-date)z&invalid value '%s' for 'link' argumentz%s %s -> %srr)Zdistutils.dep_utilr�statrrr r!rr
�isfiler�isdir�join�basename�dirnamer�debug�_copy_action�KeyError�
ValueError�infor�samefile�linkr
�symlinkr�utime�chmod)rrZ
preserve_modeZpreserve_times�updater.�verbose�dry_runrrrr r!�dir�action�strrr�	copy_fileCsT!"
$

$
'
'

r8c(Csddlm}m}m}m}m}ddl}	|dkrStjd||�|r]|S||�syt	d|��||�r�t
jj|||��}n"||�r�t	d||f��|||��s�t	d||f��d}
yt
j
||�Wnetk
rn}zE|j\}}
||	jkrCd	}
nt	d
|||
f��WYdd}~XnX|
rt||d|�yt
j|�Wnvtk
r}zV|j\}}
yt
j|�Wntk
r�YnXt	d||||
f��WYdd}~XnX|S)
Nr)rr#r$r&r'rzmoving %s -> %sz#can't move '%s': not a regular filez0can't move '%s': destination '%s' already existsz2can't move '%s': destination '%s' not a valid pathFTzcouldn't move '%s' to '%s': %sr3zAcouldn't move '%s' to '%s' by copy/delete: delete '%s' failed: %s)Zos.pathrr#r$r&r'�errnorr,rrr
r%�renamer
�argsZEXDEVr8r)rrr3r4rr#r$r&r'r9Zcopy_itr�num�msgrrr�	move_file�sR(	)
)r>c
CsGt|d�}z&x|D]}|j|d�qWWd|j�XdS)N�w�
)r	rr)�filename�contents�f�linerrr�
write_file�s

rEi@)
rZdistutils.errorsrZ	distutilsrr)rr8r>rErrrr�<module>s3	c=