DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/lib//shutil.pyc

'Sc@sdZddlZddlZddlZddlmZddlZddlZddlZyddl	m
Z
Wnek
rdZ
nXyddl
mZWnek
rdZnXdddd	d
ddd
ddddddddgZdefdYZdefdYZdefdYZyeWnek
rSdZnXd>dZdZdZdZdZd Zd!Zd"Zedd#Zedd$Z d%Z!d&Z"d'Z#d(Z$d)Z%d*d+d+dddd,Z&eed-Z'd+d+dd.Z(ie&d?gd0fd16e&d@gd3fd46e&dAgd5fd66e(gd7fd86Z)d9Z*dd:d;Z+d<Z,ddd+d+dddd=Z-dS(BsUtility functions for copying and archiving files and directory trees.

XXX The functions here don't copy the resource fork or other metadata on Mac.

iN(tabspath(tgetpwnam(tgetgrnamtcopyfileobjtcopyfiletcopymodetcopystattcopytcopy2tcopytreetmovetrmtreetErrortSpecialFileErrort	ExecErrortmake_archivetget_archive_formatstregister_archive_formattunregister_archive_formatcBseZRS((t__name__t
__module__(((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRscBseZdZRS(s|Raised when trying to do a kind of operation (e.g. copying) which is
    not supported on a special file (e.g. a named pipe)(RRt__doc__(((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyR
!scBseZdZRS(s+Raised when a command could not be executed(RRR(((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyR%siicCs0x)|j|}|sPn|j|qdS(s=copy data from file-like object fsrc to file-like object fdstN(treadtwrite(tfsrctfdsttlengthtbuf((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyR-s
cCs{ttjdrAytjj||SWqAtk
r=tSXntjjtjj|tjjtjj|kS(Ntsamefile(thasattrtostpathRtOSErrortFalsetnormcaseR(tsrctdst((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt	_samefile5s
cCst||r(td||fnx`||gD]R}ytj|}Wntk
raq5Xtj|jr5td|q5q5Wt|d,}t|d}t	||WdQXWdQXdS(sCopy data from src to dsts`%s` and `%s` are the same files`%s` is a named pipetrbtwbN(
R%RRtstatR tS_ISFIFOtst_modeR
topenR(R#R$tfntstRR((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRAs
cCsGttdrCtj|}tj|j}tj||ndS(sCopy mode bits from src to dsttchmodN(RRR(tS_IMODER*R.(R#R$R-tmode((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRUscCstj|}tj|j}ttdrOtj||j|jfnttdrqtj||nttdrt|drytj	||j
Wqtk
r}ttds|jtj
krqqXndS(sCCopy all stat info (mode bits, atime, mtime, flags) from src to dsttutimeR.tchflagstst_flagst
EOPNOTSUPPN(RR(R/R*RR1tst_atimetst_mtimeR.R2R3R terrnoR4(R#R$R-R0twhy((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyR\scCsTtjj|r6tjj|tjj|}nt||t||dS(sVCopy data and mode bits ("cp src dst").

    The destination may be a directory.

    N(RRtisdirtjointbasenameRR(R#R$((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRls$
cCsTtjj|r6tjj|tjj|}nt||t||dS(s]Copy data and all stat info ("cp -p src dst").

    The destination may be a directory.

    N(RRR9R:R;RR(R#R$((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRws$
csfd}|S(sFunction that can be used as copytree() ignore parameter.

    Patterns is a sequence of glob-style patterns
    that are used to exclude filescs:g}x'D]}|jtj||q
Wt|S(N(textendtfnmatchtfiltertset(Rtnamest
ignored_namestpattern(tpatterns(sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt_ignore_patternss
((RCRD((RCsHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pytignore_patternssc
Cstj|}|dk	r-|||}n	t}tj|g}x|D]
}||krhqPntjj||}tjj||}	ys|rtjj|rtj|}
tj	|
|	n5tjj
|rt||	||n
t||	WqPt
k
r.}|j|jdqPtk
r\}|j||	t|fqPXqPWyt||WnMtk
r}tdk	rt|trq|j||t|fnX|rt
|ndS(sRecursively copy a directory tree using copy2().

    The destination directory must not already exist.
    If exception(s) occur, an Error is raised with a list of reasons.

    If the optional symlinks flag is true, symbolic links in the
    source tree result in symbolic links in the destination tree; if
    it is false, the contents of the files pointed to by symbolic
    links are copied.

    The optional ignore argument is a callable. If given, it
    is called with the `src` parameter, which is the directory
    being visited by copytree(), and `names` which is the list of
    `src` contents, as returned by os.listdir():

        callable(src, names) -> ignored_names

    Since copytree() is called recursively, the callable will be
    called once for each directory that is copied. It returns a
    list of names relative to the `src` directory that should
    not be copied.

    XXX Consider this example code rather than the ultimate tool.

    iN(RtlistdirtNoneR?tmakedirsRR:tislinktreadlinktsymlinkR9R	RRR<targstEnvironmentErrortappendtstrRR tWindowsErrort
isinstance(
R#R$tsymlinkstignoreR@RAterrorstnametsrcnametdstnametlinktoterrR8((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyR	s<	

$ cCs|rd}n|dkr*d}ny%tjj|rNtdnWn.tk
r|tjj|tjdSXg}ytj|}Wn/tjk
r}|tj|tjnXx|D]}tjj	||}ytj
|j}Wntjk
rd}nXtj
|rBt|||qytj|Wqtjk
r}|tj|tjqXqWytj|Wn-tjk
r|tj|tjnXdS(sRecursively delete a directory tree.

    If ignore_errors is set, errors are ignored; otherwise, if onerror
    is set, it is called to handle the error with arguments (func,
    path, exc_info) where func is os.listdir, os.remove, or os.rmdir;
    path is the argument to that function that caused it to fail; and
    exc_info is a tuple returned by sys.exc_info().  If ignore_errors
    is false and onerror is None, an exception is raised.

    cWsdS(N((RL((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pytonerrorscWsdS(N((RL((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRZss%Cannot call rmtree on a symbolic linkNi(RGRRRIR tsystexc_infoRFterrorR:tlstatR*R(tS_ISDIRRtremovetrmdir(Rt
ignore_errorsRZR@RYRUtfullnameR0((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRs>


!cCstjj|jtjjS(N(RRR;trstriptsep(R((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt	_basenamescCs|}tjj|rXtjj|t|}tjj|rXtd|qXnytj||Wntk
rtjj|rt	||rtd||fnt
||dtt|qt
||tj|nXdS(sRecursively move a file or directory to another location. This is
    similar to the Unix "mv" command.

    If the destination is a directory or a symlink to a directory, the source
    is moved inside the directory. The destination path must not already
    exist.

    If the destination already exists but is not a directory, it may be
    overwritten depending on os.rename() semantics.

    If the destination is on our current filesystem, then rename() is used.
    Otherwise, src is copied to the destination and then removed.
    A lot more could be done here...  A look at a mv.c shows a lot of
    the issues this implementation glosses over.

    s$Destination path '%s' already existss.Cannot move a directory '%s' into itself '%s'.RRN(RRR9R:RftexistsRtrenameR t
_destinsrcR	tTrueRRtunlink(R#R$treal_dst((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyR
s


cCsut|}t|}|jtjjs@|tjj7}n|jtjjsh|tjj7}n|j|S(N(RtendswithRRRet
startswith(R#R$((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRi'scCs^tdks|dkrdSyt|}Wntk
rEd}nX|dk	rZ|dSdS(s"Returns a gid, given a group name.iN(RRGtKeyError(RUtresult((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt_get_gid0s

cCs^tdks|dkrdSyt|}Wntk
rEd}nX|dk	rZ|dSdS(s"Returns an uid, given a user name.iN(RRGRo(RURp((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt_get_uid<s

tgzipicseidd6dd6dd6}idd6dd6}	|dk	rY||	jkrYtdn|d	|	j|d}
tjj|
}tjj|s|jd
||stj	|qnddl
}|dk	r|jd
nttfd}
|sa|j
|
d||}z|j|d|
Wd|jXn|
S(sCreate a (possibly compressed) tar file from all the files under
    'base_dir'.

    'compress' must be "gzip" (the default), "bzip2", or None.

    'owner' and 'group' can be used to define an owner and a group for the
    archive that is being built. If not provided, the current owner and group
    will be used.

    The output tar file will be named 'base_dir' +  ".tar", possibly plus
    the appropriate compression extension (".gz", or ".bz2").

    Returns the output filename.
    tgzRstbz2tbzip2ts.gzs.bz2s9bad value for 'compress': must be None, 'gzip' or 'bzip2's.tarscreating %siNsCreating tar archivecsFdk	r!|_|_ndk	rB|_|_n|S(N(RGtgidtgnametuidtuname(ttarinfo(tgroupRzRxtowner(sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt_set_uid_gidrs		sw|%sR>(RGtkeyst
ValueErrortgetRRtdirnameRgtinfoRHttarfileRrRqR+taddtclose(t	base_nametbase_dirtcompresstverbosetdry_runR~R}tloggerttar_compressiontcompress_exttarchive_nametarchive_dirRRttar((R~RzR}RxsHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt
_make_tarballHs.		cCsz|rd}nd}ddlm}ddlm}y |d|||gd|Wn|k
rutd|nXdS(	Ns-rs-rqi(tDistutilsExecError(tspawntzipRskunable to create zip file '%s': could neither import the 'zipfile' module nor find a standalone zip utility(tdistutils.errorsRtdistutils.spawnRR(Rtzip_filenameRRt
zipoptionsRR((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt_call_external_zips	 
cCs|d}tjj|}tjj|sf|dk	rM|jd|n|sftj|qfnyddl}Wntk
rd}nX|dkrt	||||n|dk	r|jd||n|s|j
|dd|j}xtj|D]\}	}
}xs|D]k}tjj
tjj|	|}
tjj|
r|j|
|
|dk	r|jd|
qqqWqW|jn|S(	slCreate a zip file from all the files under 'base_dir'.

    The output zip file will be named 'base_dir' + ".zip".  Uses either the
    "zipfile" Python module (if available) or the InfoZIP "zip" utility
    (if installed and found on the default search path).  If neither tool is
    available, raises ExecError.  Returns the name of the output zip
    file.
    s.zipscreating %siNs#creating '%s' and adding '%s' to ittwtcompressionsadding '%s'(RRRRgRGRRHtzipfiletImportErrorRtZipFiletZIP_DEFLATEDtwalktnormpathR:tisfileRR(RRRRRRRRRtdirpathtdirnamest	filenamesRUR((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt
_make_zipfiles8	


	

!
Rsgzip'ed tar-filetgztarRvsbzip2'ed tar-filetbztarsuncompressed tar fileRsZIP fileRcCs=gtjD]\}}||df^q
}|j|S(sReturns a list of supported formats for archiving and unarchiving.

    Each element of the returned sequence is a tuple (name, description)
    i(t_ARCHIVE_FORMATStitemstsort(RUtregistrytformats((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRs,
RwcCs|dkrg}nt|tjs:td|nt|ttfs^tdnxE|D]=}t|ttfst|dkretdqeqeW|||ft|<dS(suRegisters an archive format.

    name is the name of the format. function is the callable that will be
    used to create archives. If provided, extra_args is a sequence of
    (name, value) tuples that will be passed as arguments to the callable.
    description can be provided to describe the format, and will be returned
    by the get_archive_formats() function.
    sThe %s object is not callables!extra_args needs to be a sequenceis+extra_args elements are : (arg_name, value)N(	RGRQtcollectionstCallablet	TypeErrorttupletlisttlenR(RUtfunctiont
extra_argstdescriptiontelement((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRs		
(cCst|=dS(N(R(RU((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRsc	Cshtj}	|d
k	rb|d
k	r7|jd|ntjj|}|sbtj|qbn|d
krztj}ni|d6|d6}
yt|}Wnt	k
rt
d|nX|d}x"|dD]\}
}||
|
<qW|dkr||
d<||
d	<nz||||
}Wd
|d
k	rc|d
k	rS|jd|	ntj|	nX|S(sCreate an archive file (eg. zip or tar).

    'base_name' is the name of the file to create, minus any format-specific
    extension; 'format' is the archive format: one of "zip", "tar", "bztar"
    or "gztar".

    'root_dir' is a directory that will be the root directory of the
    archive; ie. we typically chdir into 'root_dir' before creating the
    archive.  'base_dir' is the directory where we start archiving from;
    ie. 'base_dir' will be the common prefix of all files and
    directories in the archive.  'root_dir' and 'base_dir' both default
    to the current directory.  Returns the name of the archive file.

    'owner' and 'group' are used when creating a tar archive. By default,
    uses the current owner and group.
    schanging into '%s'RRsunknown archive format '%s'iiRR~R}Nschanging back to '%s'(RtgetcwdRGtdebugRRtchdirtcurdirRRoR(Rtformattroot_dirRRRR~R}Rtsave_cwdtkwargstformat_infotfunctargtvaltfilename((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyRs6



i@(scompresssgzip(scompresssbzip2(scompressN(.RRR[R(tos.pathRR=RR7tpwdRRRGtgrpRt__all__RMRR
RRPt	NameErrorRR%RRRRRRER!R	RRfR
RiRqRrRRRRRRRR(((sHC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\shutil.pyt<module>sn



	

							A1		"					;/	
		

Anon7 - 2022
AnonSec Team