$16 GRAYBYTE WORDPRESS FILE MANAGER $26

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.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib/python3.4/site-packages/setuptools/__pycache__/

HOME
Current File : /opt/alt/python34/lib/python3.4/site-packages/setuptools/__pycache__//archive_util.cpython-34.pyc
�
M�Re��@s�dZdddddddgZdd	lZdd	lZdd	lZdd	lZdd	lZdd
lmZddl	m
Z
Gdd�de
�Zd
d�Zed	dd�Z
edd�Zedd�Zedd�ZeeefZd	S)z/Utilities for extracting common archive formats�unpack_archive�unpack_zipfile�unpack_tarfile�default_filter�UnrecognizedFormat�extraction_drivers�unpack_directory�N)�ensure_directory)�DistutilsErrorc@seZdZdZdS)rz#Couldn't recognize the archive typeN)�__name__�
__module__�__qualname__�__doc__�rr�2/tmp/pip-l4uy7dan-build/setuptools/archive_util.pyr
scCs|S)z@The default progress/filter callback; returns True for all filesr)�src�dstrrrrscCs[xT|ptD]6}y||||�Wntk
r>w
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)rr)�filename�extract_dir�progress_filterZdriversZdriverrrrr*s
c
CsGtjj|�s(td|f��nid|f|6}xtj|�D]�\}}}||\}}xD|D]<}	||	dtjj||	�f|tjj||	�<qqWx�|D]�}
||
}tjj||
�}|||
|�}|s�q�nt|�tjj||
�}
tj|
|�tj	|
|�q�WqKWdS)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�name�targetrrrrSs"
:


c
Cs\tj|�s%td|f��ntj|�}zx|j�D]}|j}|jd�sDd|jd�kr}qDntj	j
||jd��}|||�}|s�qDn|jd�r�t|�nMt|�|j
|j�}t|d�}z|j|�Wd|j�~X|jd?}	|	rDtj||	�qDqDWWd|j�XdS)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�close�
external_attr�chmod)
rrr�z�infor&r'�datar%Zunix_attributesrrrr|s2	$



c	Cs�ytj|�}Wn(tjk
r=td|f��YnXz�dd�|_xl|D]d}|j}|jd�rWd|jd�krWtj	j
||jd��}x||dk	r'|j�s�|j�r'|j
}|j�rtj
tj|j�|�}tj|�}n|j|�}q�W|dk	r�|j�sL|j�r�|||�}|r�|jtj�r�|dd	�}ny|j||�Wq�tjk
r�Yq�Xq�q�qWqWWdSWd|j�XdS)
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���)�tarfiler2�TarErrorr�chownr&r.r/rrr�islnk�issym�linkname�	posixpath�dirname�normpath�
_getmember�isfilerr0�sep�_extract_member�ExtractErrorr4)	rrr�tarobj�memberr&Z
prelim_dst�linkpathZ	final_dstrrrr�s8
	%'	$)r�__all__r*r>rrrD�
pkg_resourcesr	�distutils.errorsr
rrrrrrrrrrr�<module>s<(),*


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.37 PM
root / linksafe
0755
__init__.cpython-34.pyc
3.592 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
archive_util.cpython-34.pyc
5.342 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
compat.cpython-34.pyc
3.173 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
depends.cpython-34.pyc
5.751 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
dist.cpython-34.pyc
29.927 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
extension.cpython-34.pyc
1.879 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
lib2to3_ex.cpython-34.pyc
2.496 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
package_index.cpython-34.pyc
33.71 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
py26compat.cpython-34.pyc
0.735 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
py27compat.cpython-34.pyc
0.567 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
py31compat.cpython-34.pyc
0.559 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
sandbox.cpython-34.pyc
11.302 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
script template (dev).cpython-34.pyc
0.422 KB
13 Nov 2023 9.21 PM
root / root
0644
script template.cpython-34.pyc
0.238 KB
13 Nov 2023 9.21 PM
root / root
0644
site-patch.cpython-34.pyc
1.646 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
ssl_support.cpython-34.pyc
6.44 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
svn_utils.cpython-34.pyc
17.984 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
version.cpython-34.pyc
0.146 KB
13 Nov 2023 9.21 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF