$18 GRAYBYTE WORDPRESS FILE MANAGER $60

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/

HOME
Current File : /opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__//archive_util.cpython-36.pyc
3

K�Re��@s�dZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddddd	d
dgZGdd	�d	e�Zd
d�Z
e
dfdd�Ze
fdd�Ze
fdd�Ze
fdd�ZeeefZdS)z/Utilities for extracting common archive formats�N)�DistutilsError)�ensure_directory�unpack_archive�unpack_zipfile�unpack_tarfile�default_filter�UnrecognizedFormat�extraction_drivers�unpack_directoryc@seZdZdZdS)rz#Couldn't recognize the archive typeN)�__name__�
__module__�__qualname__�__doc__�rr��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/archive_util.pyrscCs|S)z@The default progress/filter callback; returns True for all filesr)�src�dstrrrrscCsNxH|ptD]0}y||||�Wntk
r4w
Yq
XdSq
Wtd|��dS)a�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.
    Nz!Not a recognized archive type: %s)r	r)�filename�extract_dir�progress_filterZdriversZdriverrrrrscCs�tjj|�std|��|d|fi}x�tj|�D]�\}}}||\}}x4|D],}	||	dtjj||	�f|tjj||	�<qLWx\|D]T}
tjj||
�}|||
|�}|s�q�t|�tjj||
�}
tj|
|�tj	|
|�q�Wq0WdS)z�"Unpack" a directory, using the same interface as for archives

    Raises ``UnrecognizedFormat`` if `filename` is not a directory
    z%s is not a directory��/N)
�os�path�isdirr�walk�joinr�shutil�copyfile�copystat)rrr�paths�base�dirs�filesrr�d�f�targetrrrr
?s 
,
c
Cs�tj|�std|f��tj|���}x�|j�D]�}|j}|jd�s.d|jd�krRq.tj	j
|f|jd���}|||�}|szq.|jd�r�t|�n4t|�|j
|j�}t|d��}|j|�WdQRX|jd?}	|	r.tj||	�q.WWdQRXdS)z�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.
    z%s is not a zip filerz..�wbN�)�zipfile�
is_zipfiler�ZipFile�infolistr�
startswith�splitrrr�endswithr�read�open�write�
external_attr�chmod)
rrr�z�info�namer&�datar%Zunix_attributesrrrrZs(




c
Cshytj|�}Wn$tjk
r2td|f��YnXtj|���dd�|_�x
|D�]}|j}|jd�oxd|j	d�krTt
jj|f|j	d���}xV|dk	r�|j
�s�|j�r�|j}|j�r�tj|j�}tj||�}tj|�}|j|�}q�W|dk	rT|j��s|j�rT|||�}	|	rT|	jt
j��r,|	dd	�}	y|j||	�WqTtjk
�rTYqTXqTWdSQRXdS)
z�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.
    z/%s is not a compressed or uncompressed tar filecWsdS)Nr)�argsrrr�<lambda>�sz unpack_tarfile.<locals>.<lambda>rz..N�T���)�tarfiler1�TarErrorr�
contextlib�closing�chownr7r-r.rrr�islnk�issym�linkname�	posixpath�dirname�normpath�
_getmember�isfilerr/�sep�_extract_member�ExtractError)
rrr�tarobj�memberr7Z
prelim_dst�linkpathr!Z	final_dstrrrrs8



)rr)r=rrrEr?�distutils.errorsr�
pkg_resourcesr�__all__rrrr
rrr	rrrr�<module>s$
"%.


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.36 PM
root / linksafe
0755
__init__.cpython-36.pyc
6.178 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
archive_util.cpython-36.pyc
5.053 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
build_meta.cpython-36.pyc
5.808 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
config.cpython-36.pyc
14.065 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
dep_util.cpython-36.pyc
0.872 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
depends.cpython-36.pyc
5.194 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
dist.cpython-36.pyc
35.115 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
extension.cpython-36.pyc
1.966 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
glibc.cpython-36.pyc
1.546 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
glob.cpython-36.pyc
3.79 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
launch.cpython-36.pyc
0.871 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
lib2to3_ex.cpython-36.pyc
2.413 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
monkey.cpython-36.pyc
5.091 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
msvc.cpython-36.pyc
33.771 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
namespaces.cpython-36.pyc
3.629 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
package_index.cpython-36.pyc
31.917 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
pep425tags.cpython-36.pyc
7.203 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
py27compat.cpython-36.pyc
0.829 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
py31compat.cpython-36.pyc
1.551 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
py33compat.cpython-36.pyc
1.236 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
py36compat.cpython-36.pyc
2.192 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
sandbox.cpython-36.pyc
15.392 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
site-patch.cpython-36.pyc
1.508 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
ssl_support.cpython-36.pyc
6.664 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
unicode_utils.cpython-36.pyc
1.179 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
version.cpython-36.pyc
0.357 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
wheel.cpython-36.pyc
5.727 KB
13 Nov 2023 9.25 PM
root / linksafe
0644
windows_support.cpython-36.pyc
1.024 KB
13 Nov 2023 9.25 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF