Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
glob.cpython-313.pyc62 linesDownload Raw Back to __pycache__
1�

2��j����SrSSKJr SSKrSSKrSSKrSSKJrJr SSK	J3r4JrJr \5(a6SSK
JrJrJr /SQrSSSjjrSSS	jjrSS7jr\SSj5r\SSj5rSS
jrSr\S Sj5r\S!Sj5rS"Sjr\S#Sj5r\S$Sj5rS%Sjr\R2"S5r\R2"S5rS&SjrS'SjrSrg)(z�8Filename globbing utility. Mostly a copy of `glob` from Python 3.5.9 10Changes include:11 * `yield from` and PEP3102 `*` removed.12 * Hidden files are not ignored.13�)�annotationsN)�Iterable�Iterator)�
TYPE_CHECKING�AnyStr�overload)�	BytesPath�StrOrBytesPath�StrPath)�glob�iglob�escapec�&�[[XS95$)a]Return a list of paths matching a pathname pattern.14 15The pattern may contain simple shell-style wildcards a la16fnmatch. However, unlike fnmatch, filenames starting with a17dot are special cases that are not matched by '*' and '?'18patterns.19 20If recursive is true, the pattern '**' will match any files and21zero or more directories and subdirectories.22)�	recursive)�listr
)�pathnamers  �UD:\code\apps\devtools\python\user_packages\Python313\site-packages\setuptools/glob.pyrrs����h�4�5�5�c�r�[X5nU(a$[U5(a[U5nU(aeU$)apReturn an iterator which yields the paths matching a pathname pattern.23 24The pattern may contain simple shell-style wildcards a la25fnmatch. However, unlike fnmatch, filenames starting with a26dot are special cases that are not matched by '*' and '?'27patterns.28 29If recursive is true, the pattern '**' will match any files and30zero or more directories and subdirectories.31)�_iglob�_isrecursive�next)rr�it�ss    rr
r
%s0��32��	$�B��\�(�+�+���H����u�
�Irc#�# �[RRU5up#U(a[U5(a[O[33n[
U5(dYU(a)[RRU5(aUv� g[RRU5(aUv� gU(dU"X#5Shv�N gX :wa[
U5(a[X!5nOU/n[
U5(d[nUH3nU"X#5H$n[RRX&5v� M& M5 gNy7f�N)�os�path�splitr�glob2�glob1�	has_magic�lexists�isdirr�glob0�join)rr�dirname�basename�glob_in_dir�dirs�names       rrr7s�������
�
�h�/��G�$��h�)?�)?�%�U�K��X�����w�w���x�(�(���34	��w�w�}�}�W�%�%������w�1�1�1����y��1�1�!'��!;���y���X���������2�D��'�'�,�,�w�-�-�3��	2�s�CD>�D<�A:D>c��gr��r'�patterns  rr!r![s��8;rc��grr-r.s  rr!r!]s��>Arc��U(dE[U[5(a [RR	S5nO[Rn[R35"U5n[R"X!5$![a /s$f=f�N�ASCII)	�36isinstance�bytesr�curdir�encode�listdir�OSError�fnmatch�filter)r'r/�namess   rr!r!_si����g�u�%�%��i�i�&�&�w�/�G��i�i�G���37�38�7�#���>�>�%�)�)�����	��s�A:�:B	�B	c���U(d*[RRU5(aU/$/$[RR[RR	X55(aU/$/$r)rrr$r#r&)r'r(s  rr%r%ms]����7�7�=�=��!�!��:��"�39�I��7�7�?�?�2�7�7�<�<��:�;�;��:��
�Irc��grr-r.s  rr r }s��<?rc��grr-r.s  rr r s��BErc#�h# �[U5(deUSSv� [U5Shv�N gN7f)Nr)r�	_rlistdirr.s  rr r �s0����� � � � �40�"�1�+����!�!�!�s�(2�0�2c��grr-�r's rrArA�s��25rc��grr-rCs rrArA�s��69rc#��# �U(dE[U[5(a [RR	S5nO[Rn[R41"U5nUHbnUv� U(a[RRX5OUn[U5H$n[RRX$5v� M& Md g![a gf=f7fr2)42r4r5rr6r7r8r9rr&rA)r'r<�xr�ys     rrArA�s������g�u�%�%��i�i�&�&�w�/�G��i�i�G���43�44�7�#������+2�r�w�w�|�|�G�'����4��A��'�'�,�,�q�$�$�!�	������s+�A
C�C�&A)C�45C�C�C�Cz([*?[])s([*?[])c��[U[5(a[RU5SL$[RU5SL$r)r4r5�magic_check_bytes�search�magic_check)rs rr"r"�s;���!�U��� �'�'��*�$�6�6��!�!�!�$�D�0�0rc�@�[U[5(aUS:H$US:H$)Ns**z**)r4r5)r/s rrr�s$���'�5�!�!��%����$��rc���[RRU5up[U[5(a[46R
SU5nX-$[R
SU5nX-$)zEscape all special characters.s[\1]z[\1])rr�47splitdriver4r5rI�subrK)r�drives  rrr�s_���g�g�(�(��2�O�E��(�E�"�"�$�(�(��8�<������?�?�7�H�5����r)F)rrr�bool�returnzlist[AnyStr])rrrrQrRzIterator[AnyStr])r'rr/�strrRz	list[str])r'r	r/r5rRzlist[bytes])r'r48r/�str | bytesrRzlist[str] | list[bytes])r'rr/rSrR�
Iterator[str])r'r	r/r5rR�Iterator[bytes])r'r49r/rTrR�Iterator[str | bytes])r'rrRrU)r'r	rRrV)r'r50rRrW)rrTrRrQ)r/rTrRrQ)�__doc__�51__future__rr:r�re�collections.abcrr�typingrrr�	_typeshedr	r52r�__all__rr
rr!r%r rA�compilerKrIr"rrr-rr�<module>r`s����#��	�	�.�2�2��<�<�53%��6��$.�H54�;�55�;�	�A�56�A�*�	� 57�?�58�?�	�E�59�E�"�60�5�61�5�	�9�62�9�%�$�j�j��#���J�J�z�*��1��	r
codekingpro/portable-devtools · Team Ai