관리-도구
편집 파일: glob.cpython-312.pyc
� t��e � � � d Z ddlZddlZddlZg d�Zdd�Zdd�Zd� Zd� Zd� Z d � Z d � Z ej d� Z ej d� Zd � Zd� Zd� Zy)z� Filename globbing utility. Mostly a copy of `glob` from Python 3.5. Changes include: * `yield from` and PEP3102 `*` removed. * Hidden files are not ignored. � N)�glob�iglob�escapec �. � t t | |�� � S )ay Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. However, unlike fnmatch, filenames starting with a dot are special cases that are not matched by '*' and '?' patterns. If recursive is true, the pattern '**' will match any files and zero or more directories and subdirectories. )� recursive)�listr )�pathnamer s ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/glob.pyr r s � � ��h�)�4�5�5� c �V � t | |� }|rt | � rt |� }|rJ �|S )a� Return an iterator which yields the paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. However, unlike fnmatch, filenames starting with a dot are special cases that are not matched by '*' and '?' patterns. If recursive is true, the pattern '**' will match any files and zero or more directories and subdirectories. )�_iglob�_isrecursive�next)r r �it�ss r r r s- � � ��)� $�B��\�(�+���H���� �Ir c # �( K � t j j | � \ }}|rt |� rt nt }t | � sJ|r$t j j | � r| �� y t j j |� r| �� y |s |||� E d { ��� y || k7 rt |� r t ||� }n|g}t |� st }|D ]2 } |||� D ]$ }t j j ||� �� �& �4 y 7 �n�w�N)�os�path�splitr �glob2�glob1� has_magic�lexists�isdirr �glob0�join)r r �dirname�basename�glob_in_dir�dirs�names r r r 0 s� � �� ���� � �h�/��G�X�$��h�)?�%�U�K��X����w�w���x�(��� � �w�w�}�}�W�%������w��1�1�1�� �(��y��1��g�y�)���y���X����� .�����2� .�D��'�'�,�,�w��-�-� .�.� 2�s �BD�!D�"A/Dc � � | s@t |t � r t j j d� } nt j } t j | � }t j ||� S # t $ r g cY S w xY w�N�ASCII) � isinstance�bytesr �curdir�encode�listdir�OSError�fnmatch�filter)r �pattern�namess r r r T sh � ���g�u�%��i�i�&�&�w�/�G��i�i�G��� � �7�#�� �>�>�%��)�)�� � �� ��s �A/ �/A=�<A=c �� � |s$t j j | � r|gS g S t j j t j j | |� � r|gS g S r )r r r r r )r r s r r r a sT � �� �7�7�=�=��!��:�� �I� �7�7�?�?�2�7�7�<�<���:�;��:�� �Ir c # �\ K � t |� sJ �|d d �� t | � D ] }|�� � y �w)Nr )r � _rlistdir)r r. �xs r r r q s6 � �� ��� � � �"�1�+�� �w� � �����s �*,c # � K � | s@t | t � r t j j d� } nt j } t j | � }|D ]\ }|�� | r t j j | |� n|}t |� D ]$ }t j j ||� �� �& �^ y # t j $ r Y y w xY w�wr$ ) r&