/usr/lib64/python2.6/distutils
NameSizeModeActions
command/-0755rm
archive_util.py63190644editdlrm
archive_util.pyc54970644editdlrm
archive_util.pyo54970644editdlrm
bcppcompiler.py150910644editdlrm
bcppcompiler.pyc81050644editdlrm
bcppcompiler.pyo81050644editdlrm
ccompiler.py488630644editdlrm
ccompiler.pyc378260644editdlrm
ccompiler.pyo376330644editdlrm
cmd.py192530644editdlrm
cmd.pyc169300644editdlrm
cmd.pyo169300644editdlrm
config.py41640644editdlrm
config.pyc36940644editdlrm
config.pyo36940644editdlrm
core.py90810644editdlrm
core.pyc76980644editdlrm
core.pyo76980644editdlrm
cygwinccompiler.py172920644editdlrm
cygwinccompiler.pyc95290644editdlrm
cygwinccompiler.pyo95290644editdlrm
debug.py2650644editdlrm
debug.pyc2990644editdlrm
debug.pyo2990644editdlrm
dep_util.py36320644editdlrm
dep_util.pyc32000644editdlrm
dep_util.pyo32000644editdlrm
dir_util.py81220644editdlrm
dir_util.pyc69040644editdlrm
dir_util.pyo69040644editdlrm
dist.py480070644editdlrm
dist.pyc381640644editdlrm
dist.pyo381640644editdlrm
emxccompiler.py119120644editdlrm
emxccompiler.pyc75500644editdlrm
emxccompiler.pyo75500644editdlrm
errors.py37200644editdlrm
errors.pyc63580644editdlrm
errors.pyo63580644editdlrm
extension.py103250644editdlrm
extension.pyc74080644editdlrm
extension.pyo71830644editdlrm
fancy_getopt.py184270644editdlrm
fancy_getopt.pyc124940644editdlrm
fancy_getopt.pyo123000644editdlrm
filelist.py128720644editdlrm
filelist.pyc108150644editdlrm
filelist.pyo108150644editdlrm
file_util.py83160644editdlrm
file_util.pyc68710644editdlrm
file_util.pyo68710644editdlrm
log.py16060644editdlrm
log.pyc25710644editdlrm
log.pyo25710644editdlrm
msvc9compiler.py287010644editdlrm
msvc9compiler.pyc205030644editdlrm
msvc9compiler.pyo204310644editdlrm
msvccompiler.py237600644editdlrm
msvccompiler.pyc177950644editdlrm
msvccompiler.pyo177950644editdlrm
mwerkscompiler.py103390644editdlrm
mwerkscompiler.pyc76740644editdlrm
mwerkscompiler.pyo76740644editdlrm
README10140644editdlrm
spawn.py69910644editdlrm
spawn.pyc55980644editdlrm
spawn.pyo55980644editdlrm
sysconfig.py228690644editdlrm
sysconfig.pyc160110644editdlrm
sysconfig.pyo160110644editdlrm
text_file.py151450644editdlrm
text_file.pyc112510644editdlrm
text_file.pyo112510644editdlrm
unixccompiler.py144940644editdlrm
unixccompiler.pyc90970644editdlrm
unixccompiler.pyo90970644editdlrm
util.py219780644editdlrm
util.pyc164260644editdlrm
util.pyo164260644editdlrm
version.py114860644editdlrm
version.pyc72440644editdlrm
version.pyo72440644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc55970644editdlrm
versionpredicate.pyo55970644editdlrm
__init__.py6700644editdlrm
__init__.pyc4390644editdlrm
__init__.pyo4390644editdlrm
Edit: /usr/lib64/python2.6/distutils/file_util.pyc (6871B)
Ńň Ťgc @s–dZdZddkZddklZddklZhdd6dd6d d 6Zdd „Z ddddddd„Z ddd„Z d„Z dS(sFdistutils.file_util Utility functions for operating on single files. s5$Id: file_util.py 37828 2004-11-10 22:23:15Z loewis $i˙˙˙˙N(tDistutilsFileError(tlogtcopyings hard linkingthardssymbolically linkingtsymiicCsĘd}d}zŒyt|dƒ}Wn1tij o"\}}td||f‚nXtii|ƒoIyti|ƒWq˛tij o"\}}td||f‚q˛Xnyt|dƒ}Wn1tij o"\}}td||f‚nXx›y|i|ƒ}Wn1tij o"\}}td||f‚nX|pPny|i |ƒWqütij o"\}}td||f‚qüXqüWd|o|i ƒn|o|i ƒ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((s+/usr/lib64/python2.6/distutils/file_util.pyt_copy_file_contentssH iicCsddkl}ddkl} l} l} l} tii |ƒpt d|‚ntii |ƒo+|} tii |tii |ƒƒ}ntii|ƒ} |o,|||ƒ otid|ƒ|dfSyt|}Wn tj otd|‚nXtii |ƒtii |ƒjotid||| ƒntid|||ƒ|o |d fStid jo_dd k}y|i||d|ƒWqřtij o#}t d |||df‚qřXn|d joAtii|ƒotii||ƒpti||ƒqřnË|djoAtii|ƒotii||ƒpti||ƒqřn}t||ƒ|p|oati|ƒ}|o"ti||| || fƒn|oti|| || ƒƒqřn|d fS(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 files"not copying %s (output up-to-date)is&invalid value '%s' for 'link' arguments %s %s -> %sitmacNscould not copy '%s' to '%s': %sRR( tdistutils.dep_utilRtstatRRRRR R tisfileRtisdirtjointbasenametdirnameRtdebugt _copy_actiontKeyErrort ValueErrortinfotnamet macostoolstcopyR R tsamefiletlinktsymlinkRtutimetchmod(RRt preserve_modetpreserve_timestupdateR0tverbosetdry_runRRRRRtdirtactionR-texctst((s+/usr/lib64/python2.6/distutils/file_util.pyt copy_fileLsV&"% %    ) ) ""c Csëddkl}l}l}l}l}ddk} tid||ƒ|o|S||ƒpt d|‚n||ƒot i i |||ƒƒ}n%||ƒot d||f‚n|||ƒƒpt d||f‚nd} yt i ||ƒWnNt ij o?\} } | | ijo d } qVt d ||| f‚nX| oŠt||ƒyt i|ƒWqçt ij oV\} } yt i|ƒWnt ij onXt 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&Nsmoving %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 pathiiscouldn't move '%s' to '%s': %ss+couldn't move '%s' to '%s' by copy/delete: sdelete '%s' failed: %s(tos.pathR R"R#R%R&RRR+RR R R$trenameR tEXDEVR=R ( RRR7R8R R"R#R%R&Rtcopy_ittnumtmsg((s+/usr/lib64/python2.6/distutils/file_util.pyt move_fileśsP (      cCs?t|dƒ}x|D]}|i|dƒqW|iƒdS(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.6/distutils/file_util.pyt write_fileös i@( t__doc__t __revision__R tdistutils.errorsRt distutilsRRR(RR=RDRJ(((s+/usr/lib64/python2.6/distutils/file_util.pyts"    9 e >