/opt/alt/python27/lib64/python2.7/distutils
NameSizeModeActions
command/-0755rm
archive_util.py82190644editdlrm
archive_util.pyc77050644editdlrm
archive_util.pyo77050644editdlrm
bcppcompiler.py149410644editdlrm
bcppcompiler.pyc79990644editdlrm
bcppcompiler.pyo79990644editdlrm
ccompiler.py467260644editdlrm
ccompiler.pyc375970644editdlrm
ccompiler.pyo374560644editdlrm
cmd.py192700644editdlrm
cmd.pyc172850644editdlrm
cmd.pyo172850644editdlrm
config.py41340644editdlrm
config.pyc36560644editdlrm
config.pyo36560644editdlrm
core.py90190644editdlrm
core.pyc75880644editdlrm
core.pyo75880644editdlrm
cygwinccompiler.py177350644editdlrm
cygwinccompiler.pyc99810644editdlrm
cygwinccompiler.pyo99810644editdlrm
debug.py1620644editdlrm
debug.pyc2670644editdlrm
debug.pyo2670644editdlrm
dep_util.py35090644editdlrm
dep_util.pyc32320644editdlrm
dep_util.pyo32320644editdlrm
dir_util.py78680644editdlrm
dir_util.pyc68770644editdlrm
dir_util.pyo68770644editdlrm
dist.py500490644editdlrm
dist.pyc400470644editdlrm
dist.pyo400470644editdlrm
emxccompiler.py119310644editdlrm
emxccompiler.pyc75840644editdlrm
emxccompiler.pyo75840644editdlrm
errors.py34940644editdlrm
errors.pyc65450644editdlrm
errors.pyo65450644editdlrm
extension.py109040644editdlrm
extension.pyc74640644editdlrm
extension.pyo72380644editdlrm
fancy_getopt.py179480644editdlrm
fancy_getopt.pyc122310644editdlrm
fancy_getopt.pyo120540644editdlrm
filelist.py126890644editdlrm
filelist.pyc109770644editdlrm
filelist.pyo109770644editdlrm
file_util.py81310644editdlrm
file_util.pyc68150644editdlrm
file_util.pyo68150644editdlrm
log.py16860644editdlrm
log.pyc29420644editdlrm
log.pyo29420644editdlrm
msvc9compiler.py310040644editdlrm
msvc9compiler.pyc219000644editdlrm
msvc9compiler.pyo218270644editdlrm
msvccompiler.py236370644editdlrm
msvccompiler.pyc178630644editdlrm
msvccompiler.pyo178630644editdlrm
README2950644editdlrm
spawn.py86480644editdlrm
spawn.pyc65180644editdlrm
spawn.pyo65180644editdlrm
sysconfig.py177070644editdlrm
sysconfig.py.debug-build176220644editdlrm
sysconfig.pyc136090644editdlrm
sysconfig.pyo136090644editdlrm
text_file.py124280644editdlrm
text_file.pyc94020644editdlrm
text_file.pyo94020644editdlrm
unixccompiler.py142220644editdlrm
unixccompiler.py.distutils-rpath136770644editdlrm
unixccompiler.pyc83850644editdlrm
unixccompiler.pyo83850644editdlrm
util.py182360644editdlrm
util.pyc145680644editdlrm
util.pyo145680644editdlrm
version.py114330644editdlrm
version.pyc74030644editdlrm
version.pyo74030644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc56330644editdlrm
versionpredicate.pyo56330644editdlrm
__init__.py2360644editdlrm
__init__.pyc4280644editdlrm
__init__.pyo4280644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/distutils/file_util.pyc (6815B)
ó Þ[ bc@s–dZdZddlZddlmZddlmZidd6dd6d d 6Zdd „Z ddddddd„Z ddd„Z d„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(tsrctdstt buffer_sizetfsrctfdstterrnoterrstrtbuf((s8/opt/alt/python27/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|d krCtjj|ƒ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 R tisfileRtisdirtjointbasenametdirnameRtdebugt _copy_actiontKeyErrort ValueErrortinfoR tsamefiletlinktOSErrortsymlinkRtutimetchmod(RRt preserve_modetpreserve_timestupdateR,tverbosetdry_runRRRRRtdirtactiontst((s8/opt/alt/python27/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 j j |||ƒƒ}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 R R#trenameR tEXDEVR9R ( RRR4R5R R!R"R$R%Rtcopy_ittnumtmsg((s8/opt/alt/python27/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((s8/opt/alt/python27/lib64/python2.7/distutils/file_util.pyt write_fileæs  i@( t__doc__t __revision__R tdistutils.errorsRt distutilsRRR'RR9R@RF(((s8/opt/alt/python27/lib64/python2.7/distutils/file_util.pyts    5 b<