[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.12.185: ~ $
�
�_c@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�Wd|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||�s�tj||�q�n�|dkrtjj|�otjj||�s�tj||�q�nut||�|s3|r�tj|�}|ritj|||	||
f�n|r�tj||||��q�n|dfS(s�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.

    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tsamefiletlinktsymlinkRtutimetchmod(RRt
preserve_modetpreserve_timestupdateR,tverbosetdry_runRRRRRtdirtactiontst((s+/usr/lib64/python2.7/distutils/file_util.pyt	copy_fileGsJ!"$

$
''
! 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': %sR3s+couldn't move '%s' to '%s' by copy/delete: sdelete '%s' failed: %s(tos.pathRR!R"R$R%RRR*RR	RR#trenameR
tEXDEVR8R
(
RRR3R4R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'RR8R?RE(((s+/usr/lib64/python2.7/distutils/file_util.pyt<module>s

5	Z<

Filemanager

Name Type Size Permission Actions
command Folder 0755
.__init__.pyo.40009 File 385 B 0644
.archive_util.pyo.40009 File 7.28 KB 0644
.bcppcompiler.pyo.40009 File 7.7 KB 0644
.cmd.pyo.40009 File 16.41 KB 0644
.config.pyo.40009 File 3.49 KB 0644
.core.pyo.40009 File 7.5 KB 0644
.cygwinccompiler.pyo.40009 File 9.19 KB 0644
.debug.pyo.40009 File 254 B 0644
.dep_util.pyo.40009 File 3.11 KB 0644
.dir_util.pyo.40009 File 6.72 KB 0644
.dist.pyo.40009 File 38.64 KB 0644
.emxccompiler.pyo.40009 File 7.29 KB 0644
.errors.pyo.40009 File 6.14 KB 0644
.file_util.pyo.40009 File 6.47 KB 0644
.filelist.pyo.40009 File 10.51 KB 0644
.log.pyo.40009 File 2.72 KB 0644
.msvccompiler.pyo.40009 File 17.11 KB 0644
.spawn.pyo.40009 File 6.02 KB 0644
.sysconfig.pyo.40009 File 12.96 KB 0644
.text_file.pyo.40009 File 9.03 KB 0644
.unixccompiler.pyo.40009 File 7.76 KB 0644
.util.pyo.40009 File 14.58 KB 0644
.version.pyo.40009 File 7.04 KB 0644
.versionpredicate.pyo.40009 File 5.41 KB 0644
README File 295 B 0644
__init__.py File 337 B 0644
__init__.pyc File 385 B 0644
__init__.pyo File 385 B 0644
archive_util.py File 7.64 KB 0644
archive_util.pyc File 7.28 KB 0644
archive_util.pyo File 7.28 KB 0644
bcppcompiler.py File 14.59 KB 0644
bcppcompiler.pyc File 7.7 KB 0644
bcppcompiler.pyo File 7.7 KB 0644
ccompiler.py File 45.54 KB 0644
ccompiler.pyc File 35.96 KB 0644
ccompiler.pyo File 35.82 KB 0644
cmd.py File 18.82 KB 0644
cmd.pyc File 16.41 KB 0644
cmd.pyo File 16.41 KB 0644
config.py File 4.03 KB 0644
config.pyc File 3.49 KB 0644
config.pyo File 3.49 KB 0644
core.py File 8.88 KB 0644
core.pyc File 7.5 KB 0644
core.pyo File 7.5 KB 0644
cygwinccompiler.py File 16.87 KB 0644
cygwinccompiler.pyc File 9.19 KB 0644
cygwinccompiler.pyo File 9.19 KB 0644
debug.py File 162 B 0644
debug.pyc File 254 B 0644
debug.pyo File 254 B 0644
dep_util.py File 3.43 KB 0644
dep_util.pyc File 3.11 KB 0644
dep_util.pyo File 3.11 KB 0644
dir_util.py File 7.78 KB 0644
dir_util.pyc File 6.72 KB 0644
dir_util.pyo File 6.72 KB 0644
dist.py File 48.88 KB 0644
dist.pyc File 38.64 KB 0644
dist.pyo File 38.64 KB 0644
emxccompiler.py File 11.65 KB 0644
emxccompiler.pyc File 7.29 KB 0644
emxccompiler.pyo File 7.29 KB 0644
errors.py File 3.41 KB 0644
errors.pyc File 6.14 KB 0644
errors.pyo File 6.14 KB 0644
extension.py File 10.65 KB 0644
extension.pyc File 7.24 KB 0644
extension.pyo File 7.02 KB 0644
fancy_getopt.py File 17.53 KB 0644
fancy_getopt.pyc File 11.68 KB 0644
fancy_getopt.pyo File 11.5 KB 0644
file_util.py File 7.61 KB 0644
file_util.pyc File 6.47 KB 0644
file_util.pyo File 6.47 KB 0644
filelist.py File 12.39 KB 0644
filelist.pyc File 10.51 KB 0644
filelist.pyo File 10.51 KB 0644
log.py File 1.65 KB 0644
log.pyc File 2.72 KB 0644
log.pyo File 2.72 KB 0644
msvc9compiler.py File 30.29 KB 0644
msvc9compiler.pyc File 21.04 KB 0644
msvc9compiler.pyo File 20.96 KB 0644
msvccompiler.py File 23.08 KB 0644
msvccompiler.pyc File 17.11 KB 0644
msvccompiler.pyo File 17.11 KB 0644
spawn.py File 7.61 KB 0644
spawn.pyc File 6.02 KB 0644
spawn.pyo File 6.02 KB 0644
sysconfig.py File 16.52 KB 0644
sysconfig.py.debug-build File 16.42 KB 0644
sysconfig.pyc File 12.96 KB 0644
sysconfig.pyo File 12.96 KB 0644
text_file.py File 12.12 KB 0644
text_file.pyc File 9.03 KB 0644
text_file.pyo File 9.03 KB 0644
unixccompiler.py File 12.56 KB 0644
unixccompiler.py.distutils-rpath File 12.03 KB 0644
unixccompiler.pyc File 7.76 KB 0644
unixccompiler.pyo File 7.76 KB 0644
util.py File 18.28 KB 0644
util.pyc File 14.58 KB 0644
util.pyo File 14.58 KB 0644
version.py File 11.17 KB 0644
version.pyc File 7.04 KB 0644
version.pyo File 7.04 KB 0644
versionpredicate.py File 4.98 KB 0644
versionpredicate.pyc File 5.41 KB 0644
versionpredicate.pyo File 5.41 KB 0644