Viewing File: /opt/alt/python-internal/lib64/python3.11/distutils/__pycache__/file_util.cpython-311.opt-1.pyc
!A?h \ d Z ddlZddlmZ ddlmZ ddddZdd
Z ddZ dd
Z d Z
dS )zFdistutils.file_util
Utility functions for operating on single files.
N)DistutilsFileError)logcopyingzhard linkingzsymbolically linking)Nhardsym @ 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.
Nrbzcould not open '': zcould not delete 'wbzcould not create 'Tzcould not read from 'zcould not write to ')openOSErrorr strerrorospathexistsunlinkreadwriteclose)srcdstbuffer_sizefsrcfdstebufs @/opt/alt/python-internal/lib64/python3.11/distutils/file_util.py_copy_file_contentsr s DD& TT??DD T T T$$###qzz%RSSS T 7>># G
G #
G
G
G((58SS!**EG G G
G CT??DD C C C$$14ajjAC C
C C I
Jii,,
J
J
J((8;QZZHJ J J
J
I
3
I
I
I((7:ssAJJGI I I
I I JJLLL JJLLLLL JJLLL JJLLLL s F
A<A"F $A9 8F 9
B"BB""F &B7 6F 7
C CC F %C; :F ;
D$DD$$F +E F
E*E%%E**F /G c 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"