$50 GRAYBYTE WORDPRESS FILE MANAGER $14

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

/opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/

HOME
Current File : /opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__//archive_util.cpython-38.pyc
U

�Re��@s�dZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddddd	d
dgZGdd	�d	e�Zd
d�Z
e
dfdd�Ze
fdd�Ze
fdd�Zdd�Zdd�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-python38-setuptools-58.3.0-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/setuptools/archive_util.pyrscCs|S)z@The default progress/filter callback; returns True for all filesr)�src�dstrrrrsc	CsN|ptD]4}z||||�Wntk
r4YqYqXdSqtd|��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_filterZdriversZdriverrrrrs
�cCs�tj�|�std|��|d|fi}t�|�D]�\}}}||\}}|D],}	||	dtj�||	�f|tj�||	�<qH|D]T}
tj�||
�}|||
|�}|s�qzt|�tj�||
�}
t�|
|�t�	|
|�qzq.dS)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�t�|�std|f��t�|���}|��D]�}|j}|�d�s,d|�d�krPq,tj	j
|f|�d���}|||�}|sxq,|�d�r�t|�n4t|�|�
|j�}t|d��}|�|�W5QRX|jd?}	|	r,t�||	�q,W5QRXdS)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 filer�..�wb�N)�zipfile�
is_zipfiler�ZipFile�infolistr�
startswith�splitrrr�endswithr�read�open�write�
external_attr�chmod)
rrr�z�info�namer&�datar%Zunix_attributesrrrr[s(




cCs�|dk	rT|��s|��rT|j}|��rHt�|j�}t�||�}t�|�}|�|�}q|dk	oj|�	�pj|�
�}|rt|Std��dS)z;Resolve any links and extract link targets as normal files.NzGot unknown file type)�islnk�issym�linkname�	posixpath�dirnamer8r�normpath�
_getmember�isfiler�LookupError)�tar_objZtar_member_obj�linkpathr!Zis_file_or_dirrrr�_resolve_tar_file_or_dir�s"��
�rEc
cs�dd�|_t�|���|D]�}|j}|�d�sd|�d�kr>qtjj|f|�d���}zt	||�}Wnt
k
r|YqYnX|||�}|s�q|�tj�r�|dd�}||fVqW5QRXdS)z1Emit member-destination pairs from a tar archive.cWsdS)Nr)�argsrrr�<lambda>��z _iter_open_tar.<locals>.<lambda>rr'N���)
�chown�
contextlib�closingr8r.r/rrrrErBr0�sep)rCrr�memberr8Z
prelim_dst�	final_dstrrr�_iter_open_tar�s"


rPc
Cs�zt�|�}Wn4tjk
rB}ztd|f�|�W5d}~XYnXt|||�D]0\}}z|�||�WqPtjk
r~YqPXqPdS)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 fileNT)�tarfiler2�TarErrorrrP�_extract_member�ExtractError)rrr�tarobj�erNrOrrrr�s$���)rr*rQrrr=rK�distutils.errorsr�
pkg_resourcesr�__all__rrrr
rrErPrr	rrrr�<module>s6��
$%


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.48 PM
root / linksafe
0755
__init__.cpython-38.pyc
8.574 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
_deprecation_warning.cpython-38.pyc
0.584 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
_imp.cpython-38.pyc
2.087 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
archive_util.cpython-38.pyc
5.662 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
build_meta.cpython-38.pyc
8.818 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
config.cpython-38.pyc
20.338 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
dep_util.cpython-38.pyc
0.884 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
depends.cpython-38.pyc
5.152 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
dist.cpython-38.pyc
35.649 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
errors.cpython-38.pyc
0.877 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
extension.cpython-38.pyc
1.941 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
glob.cpython-38.pyc
3.664 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
installer.cpython-38.pyc
2.767 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
launch.cpython-38.pyc
0.907 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
monkey.cpython-38.pyc
4.558 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
msvc.cpython-38.pyc
41.808 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
namespaces.cpython-38.pyc
3.543 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
package_index.cpython-38.pyc
31.814 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
py34compat.cpython-38.pyc
0.52 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
sandbox.cpython-38.pyc
15.112 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
unicode_utils.cpython-38.pyc
1.141 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
version.cpython-38.pyc
0.365 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
wheel.cpython-38.pyc
7.109 KB
13 Nov 2023 9.45 PM
root / linksafe
0644
windows_support.cpython-38.pyc
1.046 KB
13 Nov 2023 9.45 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF