ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/setuptools/archive_util.pyo
ó
Àfc@sîdZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddddd	d
dgZd	efd„ƒYZd
„Z
e
dd„Ze
d„Ze
d„Ze
d„ZeeefZdS(s/Utilities for extracting common archive formatsiÿÿÿÿN(tDistutilsError(tensure_directorytunpack_archivetunpack_zipfiletunpack_tarfiletdefault_filtertUnrecognizedFormattextraction_driverstunpack_directorycBseZdZRS(s#Couldn't recognize the archive type(t__name__t
__module__t__doc__(((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRscCs|S(s@The default progress/filter callback; returns True for all files((tsrctdst((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRscCsZxS|ptD]5}y||||ƒWntk
r=q
q
XdSq
Wtd|ƒ‚dS(s¡Unpack `filename` to `extract_dir`, or raise ``UnrecognizedFormat``

    `progress_filter` is a function taking two arguments: a source path
    internal to the archive ('/'-separated), and a filesystem path where it
    will be extracted.  The callback must return the desired extract path
    (which may be the same as the one passed in), or else ``None`` to skip
    that file or directory.  The callback can thus be used to report on the
    progress of the extraction, as well as to filter the items extracted or
    alter their extraction paths.

    `drivers`, if supplied, must be a non-empty sequence of functions with the
    same signature as this function (minus the `drivers` argument), that raise
    ``UnrecognizedFormat`` if they do not support extracting the designated
    archive type.  The `drivers` are tried in sequence until one is found that
    does not raise an error, or until all are exhausted (in which case
    ``UnrecognizedFormat`` is raised).  If you do not supply a sequence of
    drivers, the module's ``extraction_drivers`` constant will be used, which
    means that ``unpack_zipfile`` and ``unpack_tarfile`` will be tried, in that
    order.
    Ns!Not a recognized archive type: %s(RR(tfilenametextract_dirtprogress_filtertdriverstdriver((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRs
cCs:tjj|ƒs%td|ƒ‚nid|f|6}xûtj|ƒD]ê\}}}||\}}xD|D]<}	||	dtjj||	ƒf|tjj||	ƒ<qnWx|D]y}
tjj||
ƒ}|||
|ƒ}|sïqµnt|ƒtjj||
ƒ}
tj|
|ƒtj	|
|ƒqµWqHWdS(s‡"Unpack" a directory, using the same interface as for archives

    Raises ``UnrecognizedFormat`` if `filename` is not a directory
    s%s is not a directorytt/N(
tostpathtisdirRtwalktjoinRtshutiltcopyfiletcopystat(RRRtpathstbasetdirstfilesRR
tdtfttarget((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyR?s"
:

c
CsGtj|ƒs%td|fƒ‚ntj|ƒ
}x|jƒD]õ}|j}|jdƒsDd|jdƒkr}qDntj	j
||jdƒŒ}|||ƒ}|s¶qDn|jdƒrÒt|ƒnAt|ƒ|j
|jƒ}t|dƒ}|j|ƒWdQX|jd?}	|	rDtj||	ƒqDqDWWdQXdS(sòUnpack zip `filename` to `extract_dir`

    Raises ``UnrecognizedFormat`` if `filename` is not a zipfile (as determined
    by ``zipfile.is_zipfile()``).  See ``unpack_archive()`` for an explanation
    of the `progress_filter` argument.
    s%s is not a zip fileRs..twbNi(tzipfilet
is_zipfileRtZipFiletinfolistRt
startswithtsplitRRRtendswithRtreadtopentwritet
external_attrtchmod(
RRRtztinfotnameR#tdataR"tunix_attributes((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRZs(	$


c

CsÕytj|ƒ}Wn'tjk
r<td|fƒ‚nXtj|ƒƒd„|_xk|D]c}|j}|jdƒr`d|j	dƒkr`t
jj||j	dƒŒ}x‚|dk	r6|jƒsÙ|jƒr6|j}|jƒr$tj|jƒ}tj||ƒ}tj|ƒ}n|j|ƒ}qµW|dk	rÃ|jƒs[|jƒrÃ|||ƒ}	|	rÀ|	jt
jƒr|	d }	ny|j||	ƒWq½tjk
r¹q½XqÀqÃq`q`WtSWdQXdS(sûUnpack tar/tar.gz/tar.bz2 `filename` to `extract_dir`

    Raises ``UnrecognizedFormat`` if `filename` is not a tarfile (as determined
    by ``tarfile.open()``).  See ``unpack_archive()`` for an explanation
    of the `progress_filter` argument.
    s/%s is not a compressed or uncompressed tar filecWsdS(N(tNone(targs((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyt<lambda>ŽRRs..iÿÿÿÿN(ttarfileR-tTarErrorRt
contextlibtclosingtchownR3R)R*RRRR6tislnktissymtlinknamet	posixpathtdirnametnormpatht
_getmembertisfileRR+tsept_extract_membertExtractErrortTrue(
RRRttarobjtmemberR3t
prelim_dsttlinkpathRt	final_dst((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRs8
	%'	$
(RR%R9RRRAR;tdistutils.errorsRt
pkg_resourcesRt__all__RRR6RRRRR(((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyt<module>s$	"%.