File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/__pycache__/glob.cpython-310.pyc
Back
o �h� � @ s< d Z ddlmZ ddlZddlZddlZddlmZmZ ddl m Z mZmZ e r2ddl mZmZmZ g d�Zd;d<dd�Zd;d=dd�Zd=dd�Zed>dd��Zed?d d��Zd@d$d�Zd%d&� ZedAd(d)��ZedBd+d)��ZdCd-d)�ZedDd.d/��ZedEd0d/��ZdFd1d/�Ze�d2�Ze�d3�ZdGd5d6�ZdHd7d8�Zd9d:� ZdS )Iz� Filename globbing utility. Mostly a copy of `glob` from Python 3.5. Changes include: * `yield from` and PEP3102 `*` removed. * Hidden files are not ignored. � )�annotationsN)�Iterable�Iterator)� TYPE_CHECKING�AnyStr�overload)� BytesPath�StrOrBytesPath�StrPath)�glob�iglob�escapeF�pathnamer � recursive�bool�return�list[AnyStr]c C s t t| |d��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. )r )�listr )r r � r �E/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/glob.pyr s r �Iterator[AnyStr]c C s* 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�sr r r r % s r c c s� � t j�| �\}}|rt|�rtnt}t| �s/|r$t j�| �r"| V d S t j�|�r-| V d S |s;|||�E d H d S || krIt|�rIt ||�}n|g}t|�sRt }|D ]}|||�D ] }t j�||�V q[qTd S �N)�os�path�splitr �glob2�glob1� has_magic�lexists�isdirr �glob0�join)r r �dirname�basename�glob_in_dir�dirs�namer r r r 7 s0 ����r r'