łň žl‡Jc @sœdZdZddkZddklZddklZhdd<dd<d d %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&/sys/lib/python/distutils/file_util.pyt copy_fileLsV&"%%   ) ) ""c Csîddkl}l}l}l}l}ddk} tid||ƒ|o|Sn||ƒpt d|‚n||ƒot i i |||ƒƒ}n%||ƒot d||f‚n|||ƒƒpt d||f‚nd} yt i ||ƒWnNt ij o?\} } | | ijo d } qYt 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&/sys/lib/python/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&/sys/lib/python/distutils/file_util.pyt write_fileös i@( t__doc__t __revision__R tdistutils.errorsRt distutilsRRR(RR=RDRJ(((s&/sys/lib/python/distutils/file_util.pyss"     9 e >