Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
!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 ,/usr/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" | }n # t$ $ r t' d|z w xY w|dk rot j
| t j
| k rt j d|| |
nt j d|| | |r|dfS |d k rjt j | r t j | | s* t j | | |dfS # t0 $ r Y ncw xY wn^|d
k rXt j | r t j | | st j | | |dfS t5 | | |s|r_t j | }|r#t j ||| ||
f |r$t j | ||| |dfS )a Copy a file 'src' to 'dst'. If 'dst' is a directory, then 'src' is
copied there with the same name; otherwise, it must be a filename. (If
the file exists, it will be ruthlessly clobbered.) If 'preserve_mode'
is true (the default), the file's mode (type and permission bits, or
whatever is analogous on the current platform) is copied. If
'preserve_times' is true (the default), the last-modified and
last-access times are copied as well. If 'update' is true, 'src' will
only be copied if 'dst' does not exist, or if 'dst' does exist but is
older than 'src'.
'link' allows you to make hard links (os.link) or symbolic links
(os.symlink) instead of copying: set it to "hard" or "sym"; if it is
None (the default), files are copied. Don't set 'link' on systems that
don't support it: 'copy_file()' doesn't check if hard or symbolic
linking is available. If hardlink fails, falls back to
_copy_file_contents().
Under Mac OS, uses the native file copy function in macostools; on
other systems, uses '_copy_file_contents()' to copy file contents.
Return a tuple (dest_name, copied): 'dest_name' is the actual name of
the output file, and 'copied' is true if the file was copied (or would
have been copied, if 'dry_run' true).
r )newer)ST_ATIMEST_MTIMEST_MODES_IMODEz4can't copy '%s': doesn't exist or not a regular filer z"not copying %s (output up-to-date)z&invalid value '%s' for 'link' argumentz%s %s -> %sr r )distutils.dep_utilr" statr# r$ r% r&